Empeld
Empeld plugin documentation.
|
Represents an axis-aligned bounding box More...
Public Member Functions | |
AxisAlignedBox (AxisAlignedBox aab) | |
AxisAlignedBox (Vector3d a, Vector3d b) | |
AxisAlignedBox | Merge (AxisAlignedBox other) |
bool | PointIn (Vector3d pt) |
unsafe bool | Intersects (Ray ray, out double distance) |
Static Public Member Functions | |
static AxisAlignedBox | FromPointCloud (IEnumerable< Vector3 > points) |
Gets the AABB from a set of points in a cloud More... | |
static AxisAlignedBox | FromPointCloud (IEnumerable< Vector3d > points) |
Gets the AABB from a set of points in a cloud More... | |
static AxisAlignedBox | Transform (AxisAlignedBox box, Matrix4d mat) |
Transform an AABB by a matrix and return that new value More... | |
static AxisAlignedBox | Transform (AxisAlignedBox box, Matrix4 mat) |
Transforms an AABB by a matrix and returns that value More... | |
Public Attributes | |
readonly Vector3d | Min |
The minimum point of the bounding box More... | |
readonly Vector3d | Max |
The maximum point of the bounding box More... | |
Static Public Attributes | |
static readonly AxisAlignedBox | Zero = new AxisAlignedBox(Vector3d.Zero, Vector3d.Zero) |
A zero-sized bounding box More... | |
static readonly AxisAlignedBox | UnitBox = new AxisAlignedBox(-Vector3d.One * 0.5, Vector3d.One * 0.5) |
The unit box from -0.5 to 0.5 More... | |
Represents an axis-aligned bounding box
pluginbase.Helpers.Geometry.AxisAlignedBox.AxisAlignedBox | ( | AxisAlignedBox | aab | ) |
pluginbase.Helpers.Geometry.AxisAlignedBox.AxisAlignedBox | ( | Vector3d | a, |
Vector3d | b | ||
) |
|
static |
Gets the AABB from a set of points in a cloud
points | Points. |
|
static |
Gets the AABB from a set of points in a cloud
points | Points. |
unsafe bool pluginbase.Helpers.Geometry.AxisAlignedBox.Intersects | ( | Ray | ray, |
out double | distance | ||
) |
Attribute: 3
;
Attribute: 3
;
Attribute: i] < this.Min[i
)
Attribute: i
= LEFT;
Attribute: i] = this.Min[i
;
Attribute: i] > this.Max[i
)
Attribute: i
= RIGHT;
Attribute: i] = this.Max[i
;
Attribute: i
= MIDDLE;
Attribute: 3
;
Attribute: i] != MIDDLE && direction[i
!= 0)
Attribute: i] = (candidatePlane[i] - ray.Point[i])/direction[i
;
Attribute: i
= -1;
Attribute: whichPlane] < maxT[i
)
Attribute: whichPlane
< 0f)
Attribute: 3
;
Attribute: i] = ray.Point[i] + maxT[i] * direction[i
;
Attribute: i] == RIGHT && coord[i] < this.Min[i
) ||
Attribute: i] == LEFT && coord[i] > this.Max[i
))
Attribute: i] = candidatePlane[i
;
Attribute: whichPlane
;
Implements pluginbase.Helpers.Geometry.IIntersectable.
AxisAlignedBox pluginbase.Helpers.Geometry.AxisAlignedBox.Merge | ( | AxisAlignedBox | other | ) |
bool pluginbase.Helpers.Geometry.AxisAlignedBox.PointIn | ( | Vector3d | pt | ) |
|
static |
Transform an AABB by a matrix and return that new value
box | Box. |
mat | Mat. |
|
static |
Transforms an AABB by a matrix and returns that value
box | Box. |
mat | Mat. |
readonly Vector3d pluginbase.Helpers.Geometry.AxisAlignedBox.Max |
The maximum point of the bounding box
readonly Vector3d pluginbase.Helpers.Geometry.AxisAlignedBox.Min |
The minimum point of the bounding box
|
static |
The unit box from -0.5 to 0.5
|
static |
A zero-sized bounding box