Constructors
Properties
IsInfinite
#Gets whether this box is infinite. An infinite box must contain at least one infinite coordinate.
IsSingleton
#Gets whether this box occupies only a single point in space. Infinite and None boxes can never be singletons.
IsUnset
#Gets whether this box is unset. A box which contains at least one NaN value is considered unset.
Methods
ClosestPointIn
#Gets the point in the volume of this box which is closest to a point.
Parameters:
| point (PointN) | Point. |
Returns: Point in this box closest to given point.
ClosestPointOn
#Gets the point on the boundary of this box which is closest to a point.
Parameters:
| point (PointN) | Point. |
Returns: Point on this box closest to given point.
Contains
#Test whether this box contains another box. Note that two unset boxes are considered to contain each other.
Parameters:
| box (BoxN) | Box to test for. |
Returns: True if point is on or in this box.
Contains
#Test whether this box contains a point.
Parameters:
| point (PointN) | Point to test for. |
Returns: True if point is on or in this box.
CreateOrigin
#Create an empty box at the origin.
Parameters:
| dimensionality (int) | Dimensionality of box. |
Returns: Origin box.
CreateUnit
#Create a unit box at the origin.
Parameters:
| dimensionality (int) | Dimensionality of box. |
Returns: Unit box.
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
FurthestPointOn
#Gets the point on the boundary of this box which is furthest from another point.
Parameters:
| point (PointN) | Point. |
Returns: Point on this box furthest from the given point.
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
Grow
#Grow this box to include another box.
Parameters:
| box (BoxN) | Box to include. |
Returns: Box which includes both this box and the supplied box.
Grow
#Grow this box to include a new point.
Parameters:
| point (PointN) | Point to include. |
Returns: Box which includes both this box and the point.
Intersection
#Compute the intersection of two boxes.
Intersects
#Test whether this box intersects with another box. Boxes are considered to intersect even if one of them entirely contains the other.
Parameters:
| box (BoxN) | Other box. |
Returns: True if both boxes intersect.
PointAt
#Evaluate the box at the specified parameters.
Parameters:
| parameters (double[]) | Normalised parameters to evaluate. |
Returns: Point at parameters.
RandomPointIn
#Create a random point inside this box.
Parameters:
| random (Random) | Random generator. |
Returns: Random point in box.
Split
#split this box into two sub-boxes.