Constructors
PointN
#Create a new multi-dimensional point.
Parameters:
| coordinates (IEnumerable<double>) | Coordinates. |
Properties
IsInfinite
#Gets whether this point is infinite. If the coordinates contain even a single Infinity value, the point is considered to be at infinity. This test is fast.
IsLarge
#Gets whether this point contains any coordinates that are considered large enough to be problematic for arithmetical operations. Infinities are not counted as big numbers. This test is fast.
IsNegative
#Gets whether this point contains any negative coordinates. Zero is not counted as a negative number. This test is fast.
IsOrigin
#Gets whether this point represents the origin. All coordinates must be exactly equal to zero for a point to be considered the origin. This test is fast.
IsPositive
#Gets whether this point contains any positive coordinates. Zero is not counted as a positive number. This test is fast.
IsUnset
#Gets whether this point is unset. If the coordinates contain even a single NaN value, the point is considered to be unset. This test is fast.
Indexers
Methods
CreateInfinite
#Create a new point of a specific dimensionality at infinity.
CreateOrigin
#Create a new origin point of a specific dimensionality.
Parameters:
| dimensionality (int) | Dimensionality of point. |
Returns: Origin point.
CreateUnset
#Create a new unset point of a specific dimensionality.
Parameters:
| dimensionality (int) | Dimensionality of point. |
Returns: None point.
Distance
#Compute the distance between two points.
Parameters:
| other (PointN) | Second point. |
Returns: Distance.
Equals
#Indicates whether this instance and a specified object are equal.
Parameters:
| obj (object) | The object to compare with the current instance. |
Returns: true if
obj and this instance are the same type and represent the same value; otherwise, false.Overrides: ValueType.Equals
GetHashCode
#Returns the hash code for this instance.
Returns: A 32-bit signed integer that is the hash code for this instance.
Overrides: ValueType.GetHashCode
Quadrance
#Compute the quadrance between two points.
Parameters:
| other (PointN) | Second point. |
Returns: Quadrance.
Operators
| Operation | Result | Description | ||
|---|---|---|---|---|
| PointN | + | PointN | PointN | Add two multi-dimensional points together. |
| PointN | / | double | PointN | Divide a point by a factor. |
| PointN | * | double | PointN | Multiply a point by a factor. |
| PointN | - | PointN | PointN | Subtract two multi-dimensional points. If the points do not share their dimensionality, the results will be meaningless and exceptions may be thrown. |