Point |
public struct PointD3D
The PointD3D type exposes the following members.
| Name | Description | |
|---|---|---|
| Empty | Gets an empty point (0,0,0). | |
| IsEmpty | Gets a value indicating whether this point is empty (all components are zero). | |
| IsNaN | Gets a value indicating whether one of the members of this instance is NaN. | |
| PointD2DWithoutZ | Gets a 2D point with X and Y the same as this point, but without the z-component. | |
| VectorLength | Gets the vector length of this point. | |
| VectorLengthSquared | Gets the squared vector length of this point. | |
| X | Gets the x component of this point. | |
| Y | Gets the y component of this point. | |
| Z | Gets the z component of this point. |
| Name | Description | |
|---|---|---|
| Distance | Calculates the distance between two points. | |
| DistanceSquared | Calculates the squared distance between two points. | |
| DistanceSquaredTo | Calculates the squared distance between this point and another point. | |
| DistanceTo | Calculates the distance between this point and another point. | |
| DotProduct(PointD3D) | Calculates the dot product of this point and another point. | |
| DotProduct(PointD3D, PointD3D) | Calculates the dot product of two points. | |
| Equals | Indicates whether this instance and a specified object are equal. (Overrides ValueTypeEquals(Object)) | |
| GetHashCode | Returns the hash code for this instance. (Overrides ValueTypeGetHashCode) | |
| GetNormalized | Gets a normalized version of this point (length 1). | |
| GetSignFlipped | Gets a new point with all components sign-flipped. | |
| GetType | Gets the Type of the current instance. (Inherited from Object) | |
| Interpolate | Interpolates between the points p0 and p1. | |
| ToString | Returns the fully qualified type name of this instance. (Overrides ValueTypeToString) | |
| WithX | Returns a new instance with X set to the provided value. | |
| WithXPlus | Returns a new instance with X set to the X plus the provided value. | |
| WithY | Returns a new instance with Y set to the provided value. | |
| WithYPlus | Returns a new instance with Y set to the Y plus the provided value. | |
| WithZ | Returns a new instance with Z set to the provided value. | |
| WithZPlus | Returns a new instance with Z set to the Z plus the provided value. |
| Name | Description | |
|---|---|---|
| Addition(PointD3D, VectorD3D) | Adds a vector to a point component-wise. | |
| Addition(VectorD3D, PointD3D) | Adds a vector to a point component-wise. | |
| Equality(PointD3D, PointD3D) | Checks if two points are equal. | |
| (VectorD3D to PointD3D) | Converts a VectorD3D to a PointD3D. | |
| Inequality(PointD3D, PointD3D) | Checks if two points are not equal. | |
| Subtraction(PointD3D, PointD3D) | Subtracts two points to get a vector. | |
| Subtraction(PointD3D, VectorD3D) | Subtracts a vector from a point component-wise. |