Box given by its min- and max- corners Generated from class MR.Box3d. This is the by-value version of the struct.
More...
Inheritance diagram for MR.Box3d:Public Member Functions | |
| Box3d (Box3d _other) | |
| Generated copy constructor. | |
| unsafe | Box3d () |
| Constructs an empty (default-constructed) instance. | |
| unsafe | Box3d (in MR.Vector3d min, in MR.Vector3d max) |
Generated from constructor MR.Box3d.Box3d. | |
| unsafe | Box3d (MR.Const_NoInit _1) |
Generated from constructor MR.Box3d.Box3d. | |
| unsafe ref MR.Vector3d | index (int e) |
Generated from method MR.Box3d.operator[]. | |
| readonly unsafe bool | valid () |
true if the box contains at least one point Generated from method MR.Box3d.valid. | |
| readonly unsafe MR.Vector3d | center () |
computes center of the box Generated from method MR.Box3d.center. | |
| readonly unsafe MR.Vector3d | 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.Box3d.corner. | |
| readonly unsafe MR.Vector3d | size () |
computes size of the box in all dimensions Generated from method MR.Box3d.size. | |
| readonly unsafe double | diagonal () |
computes length from min to max Generated from method MR.Box3d.diagonal. | |
| readonly unsafe double | volume () |
computes the volume of this box Generated from method MR.Box3d.volume. | |
| unsafe void | include (in MR.Vector3d pt) |
minimally increases the box to include given point Generated from method MR.Box3d.include. | |
| unsafe void | include (in MR.Box3d b) |
minimally increases the box to include another box Generated from method MR.Box3d.include. | |
| readonly unsafe bool | contains (in MR.Vector3d pt) |
checks whether given point is inside (including the surface) of this box Generated from method MR.Box3d.contains. | |
| readonly unsafe bool | contains (in MR.Box3d otherbox) |
checks whether given box is fully inside (the surfaces may touch) of this box Generated from method MR.Box3d.contains. | |
| readonly unsafe MR.Vector3d | getBoxClosestPointTo (in MR.Vector3d pt) |
returns closest point in the box to given point Generated from method MR.Box3d.getBoxClosestPointTo. | |
| readonly unsafe bool | intersects (in MR.Box3d b) |
checks whether this box intersects or touches given box Generated from method MR.Box3d.intersects. | |
| readonly unsafe MR.Box3d | intersection (in MR.Box3d b) |
computes intersection between this and other box Generated from method MR.Box3d.intersection. | |
| unsafe ref MR.Box3d | intersect (in MR.Box3d b) |
Generated from method MR.Box3d.intersect. | |
| readonly unsafe double | getDistanceSq (in MR.Box3d b) |
returns squared distance between this box and given one; returns zero if the boxes touch or intersect Generated from method MR.Box3d.getDistanceSq. | |
| readonly unsafe double | getDistanceSq (in MR.Vector3d 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.Box3d.getDistanceSq. | |
| readonly unsafe MR.Vector3d | getProjection (in MR.Vector3d 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.Box3d.getProjection. | |
| readonly unsafe MR.Box3d | expanded (in MR.Vector3d expansion) |
decreases min and increased max on given value Generated from method MR.Box3d.expanded. | |
| readonly unsafe MR.Box3d | insignificantlyExpanded () |
decreases min and increases max to their closest representable value Generated from method MR.Box3d.insignificantlyExpanded. | |
| bool | Equals (MR.Box3d a) |
| override bool | Equals (object? other) |
Static Public Member Functions | |
| static implicit | operator Box3d (ConstBox_Box3d other) |
| Copy contents from a wrapper class to this struct. | |
| static unsafe MR.Box3d | fromMinAndSize (in MR.Vector3d min, in MR.Vector3d size) |
Generated from method MR.Box3d.fromMinAndSize. | |
| static unsafe MR.Vector3b | getMinBoxCorner (in MR.Vector3d 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.Box3d.getMinBoxCorner. | |
| static unsafe MR.Vector3b | getMaxBoxCorner (in MR.Vector3d 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.Box3d.getMaxBoxCorner. | |
| static unsafe bool | operator== (MR.Box3d _this, MR.Box3d a) |
Generated from method MR.Box3d.operator==. | |
| static unsafe bool | operator!= (MR.Box3d _this, MR.Box3d a) |
Public Attributes | |
| MR.Vector3d | min |
| MR.Vector3d | max |
Properties | |
| readonly unsafe ref readonly MR.Vector3d | this[int e] [get] |
min/max access by 0/1 index Generated from method MR.Box3d.operator[]. | |
Box given by its min- and max- corners Generated from class MR.Box3d. 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.Box3d.Box3d.
|
inline |
Generated from constructor MR.Box3d.Box3d.
|
inline |
computes center of the box Generated from method MR.Box3d.center.
|
inline |
checks whether given box is fully inside (the surfaces may touch) of this box Generated from method MR.Box3d.contains.
|
inline |
checks whether given point is inside (including the surface) of this box Generated from method MR.Box3d.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.Box3d.corner.
|
inline |
computes length from min to max Generated from method MR.Box3d.diagonal.
|
inline |
|
inline |
|
inline |
decreases min and increased max on given value Generated from method MR.Box3d.expanded.
|
inlinestatic |
Generated from method MR.Box3d.fromMinAndSize.
|
inline |
returns closest point in the box to given point Generated from method MR.Box3d.getBoxClosestPointTo.
|
inline |
returns squared distance between this box and given one; returns zero if the boxes touch or intersect Generated from method MR.Box3d.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.Box3d.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.Box3d.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.Box3d.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.Box3d.getProjection.
|
inline |
minimally increases the box to include another box Generated from method MR.Box3d.include.
|
inline |
minimally increases the box to include given point Generated from method MR.Box3d.include.
|
inline |
Generated from method MR.Box3d.operator[].
|
inline |
decreases min and increases max to their closest representable value Generated from method MR.Box3d.insignificantlyExpanded.
Generated from method MR.Box3d.intersect.
computes intersection between this and other box Generated from method MR.Box3d.intersection.
|
inline |
checks whether this box intersects or touches given box Generated from method MR.Box3d.intersects.
|
static |
Copy contents from a wrapper class to this struct.
Generated from method MR.Box3d.operator==.
|
inline |
computes size of the box in all dimensions Generated from method MR.Box3d.size.
|
inline |
true if the box contains at least one point Generated from method MR.Box3d.valid.
|
inline |
computes the volume of this box Generated from method MR.Box3d.volume.
| MR.Vector3d MR.Box3d.max |
| MR.Vector3d MR.Box3d.min |
|
get |
min/max access by 0/1 index Generated from method MR.Box3d.operator[].