• Articles
  • Api Documentation
Show / Hide Table of Contents
  • Paramdigma.Core
    • Convert
    • Intersect3D
    • Intersect3D.LineLineIntersectionResult
    • Intersect3D.LineLineIntersectionStatus
    • Intersect3D.LinePlaneIntersectionStatus
    • Intersect3D.RayFacePerimeterIntersectionStatus
    • Settings
  • Paramdigma.Core.Collections
    • Interval
    • Matrix<T>
  • Paramdigma.Core.Curves
    • Geodesics
    • LevelSets
  • Paramdigma.Core.Exceptions
    • UnsetGeometryException
  • Paramdigma.Core.Extensions
    • Lists
  • Paramdigma.Core.Geometry
    • BaseCurve
    • BasePoint
    • Box
    • Circle
    • Cylinder
    • Delaunay
    • InvalidCurveException
    • Line
    • Line2d
    • Mesh
    • MeshCorner
    • MeshEdge
    • MeshFace
    • MeshGeometry
    • MeshHalfEdge
    • MeshPoint
    • MeshTopology
    • MeshVertex
    • NurbsCurve
    • NurbsSurface
    • Plane
    • Point2d
    • Point3d
    • Point4d
    • Polyline
    • Polyline2d
    • Ray
    • Ray2d
    • Rectangle2d
    • Sphere
    • Torus
    • Vector2d
    • Vector3d
    • VectorNd
  • Paramdigma.Core.Geometry.Interfaces
    • ICurve
    • ISurface
    • IVector
  • Paramdigma.Core.IO
    • CsvReader
    • CsvWritter
    • OBJMeshData
    • ObjReader
    • ObjWritter
    • OffMeshData
    • OffReader
    • OffResult
    • OffWriter
  • Paramdigma.Core.LinearAlgebra
    • Complex
    • LeastSquaresLinearFit
    • Triplet
    • TripletData
  • Paramdigma.Core.Optimization
    • GradientDescent
    • GradientDescent.FitnessFunction
    • GradientDescentOptions
    • GradientDescentResult
    • KMeansCluster
    • KMeansClustering
    • KMeansClustering.IterationCompletedEventArgs
  • Paramdigma.Core.Spatial
    • DelaunayEdge
    • DelaunayPoint
    • DelaunayTriangle
    • Octree
    • PointCloud
    • PointCloudMember
    • QuadTree

Class Point3d

Represents a 3-dimensional point in cartesian coordinates.

Inheritance
System.Object
BasePoint
Point3d
MeshVertex
Inherited Members
BasePoint.X
BasePoint.Y
BasePoint.Z
BasePoint.IsUnset
BasePoint.Add(BasePoint)
BasePoint.Substract(BasePoint)
BasePoint.Multiply(Double)
BasePoint.Divide(Double)
BasePoint.Negate()
BasePoint.ToArray()
BasePoint.Equals(Object)
BasePoint.GetHashCode()
Namespace: Paramdigma.Core.Geometry
Assembly: Paramdigma.Core.dll
Syntax
public class Point3d : BasePoint

Constructors

| Improve this Doc View Source

Point3d()

Initializes a new instance of the Point3d class.

Declaration
public Point3d()
| Improve this Doc View Source

Point3d(Point2d)

Initializes a new instance of the Point3d class from a 2-dimensional point.

Declaration
public Point3d(Point2d point)
Parameters
Type Name Description
Point2d point

2d point to convert.

| Improve this Doc View Source

Point3d(Point3d)

Initializes a new instance of the Point3d class.

Declaration
public Point3d(Point3d point)
Parameters
Type Name Description
Point3d point

3d point to copy.

| Improve this Doc View Source

Point3d(Point4d)

Initializes a new instance of the Point3d class from a 4-dimensional point by dividing the cartesian coordinates by the weight.

Declaration
public Point3d(Point4d point)
Parameters
Type Name Description
Point4d point

4d point to convert.

| Improve this Doc View Source

Point3d(Double, Double, Double)

Initializes a new instance of the Point3d class by cartesian coordinates.

Declaration
public Point3d(double xCoord, double yCoord, double zCoord)
Parameters
Type Name Description
System.Double xCoord

X coordinate.

System.Double yCoord

Y coordinate.

System.Double zCoord

Z coordinate.

Properties

| Improve this Doc View Source

Unset

Gets a new Unset point.

Declaration
public static Point3d Unset { get; }
Property Value
Type Description
Point3d

Point3d.

| Improve this Doc View Source

WorldOrigin

Gets a point with X,Y,Z = 0, and Unset = False.

Declaration
public static Point3d WorldOrigin { get; }
Property Value
Type Description
Point3d

Methods

| Improve this Doc View Source

Clone()

Performs a deep clone of the point.

Declaration
public Point3d Clone()
Returns
Type Description
Point3d

Returns a copy of this point instance.

| Improve this Doc View Source

DistanceTo(Point3d)

Gets the euclidean distance between this point and the provided one.

Declaration
public double DistanceTo(Point3d point)
Parameters
Type Name Description
Point3d point

Point.

Returns
Type Description
System.Double
| Improve this Doc View Source

ToString()

Returns the string representation of this point.

Declaration
public override string ToString()
Returns
Type Description
System.String
Overrides
BasePoint.ToString()

Operators

| Improve this Doc View Source

Addition(Point3d, Vector3d)

Adds a vector to a point.

Declaration
public static Point3d operator +(Point3d point, Vector3d v)
Parameters
Type Name Description
Point3d point

Point.

Vector3d v

Vector.

Returns
Type Description
Point3d

Point3d.

| Improve this Doc View Source

Division(Point3d, Double)

Divides a point with a number.

Declaration
public static Point3d operator /(Point3d point, double scalar)
Parameters
Type Name Description
Point3d point

Point.

System.Double scalar

Number.

Returns
Type Description
Point3d

Point3d.

| Improve this Doc View Source

Equality(Point3d, Point3d)

Checks equality between two points.

Declaration
public static bool operator ==(Point3d point, Point3d point2)
Parameters
Type Name Description
Point3d point

Point A.

Point3d point2

Point B.

Returns
Type Description
System.Boolean

Point3d.

| Improve this Doc View Source

Explicit(Point4d to Point3d)

Explicit conversion from 4-dimensional point to 3-dimensional point. (X/W,Y/W,Z/W).

Declaration
public static explicit operator Point3d(Point4d point)
Parameters
Type Name Description
Point4d point

3d Point to convert.

Returns
Type Description
Point3d
| Improve this Doc View Source

Explicit(Vector3d to Point3d)

Explicit conversion from vector to point.

Declaration
public static explicit operator Point3d(Vector3d v)
Parameters
Type Name Description
Vector3d v

3d Vector to convert.

Returns
Type Description
Point3d
| Improve this Doc View Source

Implicit(Point3d to Vector3d)

Implicit conversion from point to vector.

Declaration
public static implicit operator Vector3d(Point3d pt)
Parameters
Type Name Description
Point3d pt

3d Point to convert.

Returns
Type Description
Vector3d
| Improve this Doc View Source

Inequality(Point3d, Point3d)

Checks inequality between two points.

Declaration
public static bool operator !=(Point3d point, Point3d point2)
Parameters
Type Name Description
Point3d point

Point A.

Point3d point2

Point B.

Returns
Type Description
System.Boolean

Point3d.

| Improve this Doc View Source

Multiply(Point3d, Double)

Multiplies a point with a number.

Declaration
public static Point3d operator *(Point3d point, double scalar)
Parameters
Type Name Description
Point3d point

Point.

System.Double scalar

Number.

Returns
Type Description
Point3d

Point3d.

| Improve this Doc View Source

Multiply(Double, Point3d)

Multiplies a point with a number.

Declaration
public static Point3d operator *(double scalar, Point3d point)
Parameters
Type Name Description
System.Double scalar

Number.

Point3d point

Point.

Returns
Type Description
Point3d

Point3d.

| Improve this Doc View Source

Subtraction(Point3d, Point3d)

Substracts a point from another point.

Declaration
public static Vector3d operator -(Point3d point, Point3d point2)
Parameters
Type Name Description
Point3d point

Point A.

Point3d point2

Point B.

Returns
Type Description
Vector3d

Point3d.

| Improve this Doc View Source

Subtraction(Point3d, Vector3d)

Substracts a vector from a point.

Declaration
public static Vector3d operator -(Point3d point, Vector3d vector)
Parameters
Type Name Description
Point3d point

Point.

Vector3d vector

Vector.

Returns
Type Description
Vector3d

Point3d.

| Improve this Doc View Source

UnaryNegation(Point3d)

Negates a point.

Declaration
public static Point3d operator -(Point3d point)
Parameters
Type Name Description
Point3d point

Point.

Returns
Type Description
Point3d

Point3d.

  • Improve this Doc
  • View Source
Back to top Generated by DocFX