Class Point3d
Represents a 3-dimensional point in cartesian coordinates.
Inherited Members
Namespace: Paramdigma.Core.Geometry
Assembly: Paramdigma.Core.dll
Syntax
public class Point3d : BasePoint
Constructors
| Improve this Doc View SourcePoint3d()
Initializes a new instance of the Point3d class.
Declaration
public Point3d()
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. |
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. |
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. |
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 SourceUnset
Gets a new Unset point.
Declaration
public static Point3d Unset { get; }
Property Value
Type | Description |
---|---|
Point3d |
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 SourceClone()
Performs a deep clone of the point.
Declaration
public Point3d Clone()
Returns
Type | Description |
---|---|
Point3d | Returns a copy of this point instance. |
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 |
ToString()
Returns the string representation of this point.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String |
Overrides
Operators
| Improve this Doc View SourceAddition(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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
UnaryNegation(Point3d)
Negates a point.
Declaration
public static Point3d operator -(Point3d point)
Parameters
Type | Name | Description |
---|---|---|
Point3d | point | Point. |
Returns
Type | Description |
---|---|
Point3d |