Box given by its min- and max- corners Generated from class MR.Box3f. This is the by-value version of the struct.
More...
Inheritance diagram for MR.Box3f:Public Member Functions | |
| Box3f (Box3f _other) | |
| Generated copy constructor. | |
| unsafe | Box3f () |
| Constructs an empty (default-constructed) instance. | |
| unsafe | Box3f (in MR.Vector3f min, in MR.Vector3f max) |
Generated from constructor MR.Box3f.Box3f. | |
| unsafe | Box3f (MR.Const_NoInit _1) |
Generated from constructor MR.Box3f.Box3f. | |
| unsafe ref MR.Vector3f | index (int e) |
Generated from method MR.Box3f.operator[]. | |
| readonly unsafe bool | valid () |
true if the box contains at least one point Generated from method MR.Box3f.valid. | |
| readonly unsafe MR.Vector3f | center () |
computes center of the box Generated from method MR.Box3f.center. | |
| readonly unsafe MR.Vector3f | corner (in MR.Vector3b c) |
returns the corner of this box as specified by given bool-vector: 0 element in (c) means take min's coordinate, 1 element in (c) means take max's coordinate Generated from method MR.Box3f.corner. | |
| readonly unsafe MR.Vector3f | size () |
computes size of the box in all dimensions Generated from method MR.Box3f.size. | |
| readonly unsafe float | diagonal () |
computes length from min to max Generated from method MR.Box3f.diagonal. | |
| readonly unsafe float | volume () |
computes the volume of this box Generated from method MR.Box3f.volume. | |
| unsafe void | include (in MR.Vector3f pt) |
minimally increases the box to include given point Generated from method MR.Box3f.include. | |
| unsafe void | include (in MR.Box3f b) |
minimally increases the box to include another box Generated from method MR.Box3f.include. | |
| readonly unsafe bool | contains (in MR.Vector3f pt) |
checks whether given point is inside (including the surface) of this box Generated from method MR.Box3f.contains. | |
| readonly unsafe bool | contains (in MR.Box3f otherbox) |
checks whether given box is fully inside (the surfaces may touch) of this box Generated from method MR.Box3f.contains. | |
| readonly unsafe MR.Vector3f | getBoxClosestPointTo (in MR.Vector3f pt) |
returns closest point in the box to given point Generated from method MR.Box3f.getBoxClosestPointTo. | |
| readonly unsafe bool | intersects (in MR.Box3f b) |
checks whether this box intersects or touches given box Generated from method MR.Box3f.intersects. | |
| readonly unsafe MR.Box3f | intersection (in MR.Box3f b) |
computes intersection between this and other box Generated from method MR.Box3f.intersection. | |
| unsafe ref MR.Box3f | intersect (in MR.Box3f b) |
Generated from method MR.Box3f.intersect. | |
| readonly unsafe float | getDistanceSq (in MR.Box3f b) |
returns squared distance between this box and given one; returns zero if the boxes touch or intersect Generated from method MR.Box3f.getDistanceSq. | |
| readonly unsafe float | getDistanceSq (in MR.Vector3f pt) |
returns squared distance between this box and given point; returns zero if the point is inside or on the boundary of the box Generated from method MR.Box3f.getDistanceSq. | |
| readonly unsafe MR.Vector3f | getProjection (in MR.Vector3f pt) |
returns the closest point on the box to the given point for points outside the box this is equivalent to getBoxClosestPointTo Generated from method MR.Box3f.getProjection. | |
| readonly unsafe MR.Box3f | expanded (in MR.Vector3f expansion) |
decreases min and increased max on given value Generated from method MR.Box3f.expanded. | |
| readonly unsafe MR.Box3f | insignificantlyExpanded () |
decreases min and increases max to their closest representable value Generated from method MR.Box3f.insignificantlyExpanded. | |
| bool | Equals (MR.Box3f a) |
| override bool | Equals (object? other) |
Static Public Member Functions | |
| static implicit | operator Box3f (ConstBox_Box3f other) |
| Copy contents from a wrapper class to this struct. | |
| static unsafe MR.Box3f | fromMinAndSize (in MR.Vector3f min, in MR.Vector3f size) |
Generated from method MR.Box3f.fromMinAndSize. | |
| static unsafe MR.Vector3b | getMinBoxCorner (in MR.Vector3f n) |
considering all planes with given normal and arbitrary shift: dot(n,x) = d finds the box's corner for which d is minimal Generated from method MR.Box3f.getMinBoxCorner. | |
| static unsafe MR.Vector3b | getMaxBoxCorner (in MR.Vector3f n) |
considering all planes with given normal and arbitrary shift: dot(n,x) = d finds the box's corner for which d is maximal Generated from method MR.Box3f.getMaxBoxCorner. | |
| static unsafe bool | operator== (MR.Box3f _this, MR.Box3f a) |
Generated from method MR.Box3f.operator==. | |
| static unsafe bool | operator!= (MR.Box3f _this, MR.Box3f a) |
Public Attributes | |
| MR.Vector3f | min |
| MR.Vector3f | max |
Properties | |
| readonly unsafe ref readonly MR.Vector3f | this[int e] [get] |
min/max access by 0/1 index Generated from method MR.Box3f.operator[]. | |
Box given by its min- and max- corners Generated from class MR.Box3f. This is the by-value version of the struct.
|
inline |
Generated copy constructor.
|
inline |
Constructs an empty (default-constructed) instance.
|
inline |
Generated from constructor MR.Box3f.Box3f.
|
inline |
Generated from constructor MR.Box3f.Box3f.
|
inline |
computes center of the box Generated from method MR.Box3f.center.
|
inline |
checks whether given box is fully inside (the surfaces may touch) of this box Generated from method MR.Box3f.contains.
|
inline |
checks whether given point is inside (including the surface) of this box Generated from method MR.Box3f.contains.
|
inline |
returns the corner of this box as specified by given bool-vector: 0 element in (c) means take min's coordinate, 1 element in (c) means take max's coordinate Generated from method MR.Box3f.corner.
|
inline |
computes length from min to max Generated from method MR.Box3f.diagonal.
|
inline |
|
inline |
|
inline |
decreases min and increased max on given value Generated from method MR.Box3f.expanded.
|
inlinestatic |
Generated from method MR.Box3f.fromMinAndSize.
|
inline |
returns closest point in the box to given point Generated from method MR.Box3f.getBoxClosestPointTo.
|
inline |
returns squared distance between this box and given one; returns zero if the boxes touch or intersect Generated from method MR.Box3f.getDistanceSq.
|
inline |
returns squared distance between this box and given point; returns zero if the point is inside or on the boundary of the box Generated from method MR.Box3f.getDistanceSq.
|
inlinestatic |
considering all planes with given normal and arbitrary shift: dot(n,x) = d finds the box's corner for which d is maximal Generated from method MR.Box3f.getMaxBoxCorner.
|
inlinestatic |
considering all planes with given normal and arbitrary shift: dot(n,x) = d finds the box's corner for which d is minimal Generated from method MR.Box3f.getMinBoxCorner.
|
inline |
returns the closest point on the box to the given point for points outside the box this is equivalent to getBoxClosestPointTo Generated from method MR.Box3f.getProjection.
|
inline |
minimally increases the box to include another box Generated from method MR.Box3f.include.
|
inline |
minimally increases the box to include given point Generated from method MR.Box3f.include.
|
inline |
Generated from method MR.Box3f.operator[].
|
inline |
decreases min and increases max to their closest representable value Generated from method MR.Box3f.insignificantlyExpanded.
Generated from method MR.Box3f.intersect.
computes intersection between this and other box Generated from method MR.Box3f.intersection.
|
inline |
checks whether this box intersects or touches given box Generated from method MR.Box3f.intersects.
|
static |
Copy contents from a wrapper class to this struct.
Generated from method MR.Box3f.operator==.
|
inline |
computes size of the box in all dimensions Generated from method MR.Box3f.size.
|
inline |
true if the box contains at least one point Generated from method MR.Box3f.valid.
|
inline |
computes the volume of this box Generated from method MR.Box3f.volume.
| MR.Vector3f MR.Box3f.max |
| MR.Vector3f MR.Box3f.min |
|
get |
min/max access by 0/1 index Generated from method MR.Box3f.operator[].