Public Member Functions | |
| auto | index (e:core::ffi::c_int) const -> &f32 |
| auto | index_mut (e:core::ffi::c_int) -> &mut f32 |
| auto | valid () const -> bool |
| auto | center () const -> f32 |
| auto | corner (c:&bool) const -> f32 |
| auto | size () const -> f32 |
| auto | diagonal () const -> f32 |
| auto | volume () const -> f32 |
| void | include_float (pt:&f32) |
| void | include_mr_box1f (b:&meshlib::Box1f) |
| auto | contains_float (pt:&f32) const -> bool |
| auto | contains_mr_box1f (otherbox:&meshlib::Box1f) const -> bool |
| auto | get_box_closest_point_to (pt:&f32) const -> f32 |
| auto | intersects (b:&meshlib::Box1f) const -> bool |
| auto | intersection (b:&meshlib::Box1f) const -> meshlib::Box1f |
| auto | intersect (b:&meshlib::Box1f) -> &mut meshlib::Box1f |
| auto | get_distance_sq_mr_box1f (b:&meshlib::Box1f) const -> f32 |
| auto | get_distance_sq_float (pt:&f32) const -> f32 |
| auto | get_projection (pt:&f32) const -> f32 |
| auto | expanded (expansion:&f32) const -> meshlib::Box1f |
| auto | insignificantly_expanded () const -> meshlib::Box1f |
| auto | op_equal (a:&meshlib::Box1f) const -> bool |
| auto | op_not_equal (a:&meshlib::Box1f) const -> bool |
Static Public Member Functions | |
| static auto | new () -> meshlib::Box1f |
| static auto | construct_2 (min:&f32, max:&f32) -> meshlib::Box1f |
| static auto | construct_1 (_1:&meshlib::NoInit) -> meshlib::Box1f |
| static auto | from_min_and_size (min:&f32, size:&f32) -> meshlib::Box1f |
| static auto | get_min_box_corner (n:&f32) -> bool |
| static auto | get_max_box_corner (n:&f32) -> bool |
| static auto | elements () -> *const core::ffi::c_int |
Public Attributes | |
| f32 | min |
| f32 | max |
Box given by its min- and max- corners Generated from class MR::Box1f. Derived classes: Direct: (non-virtual) MR::SimpleVolumeMinMax MR::VdbVolume
Generated from struct MR::Box1f. The fields are accessed directly.
| auto meshlib::Box1f::center | ( | ) | const -> f32 |
computes center of the box Generated from method MR::Box1f::center.
Calls MR_Box1f_center().
|
static |
Generated from constructor MR::Box1f::Box1f.
Calls MR_Box1f_Construct_1(). The reference to the parameter _1 might be preserved in the constructed object.
|
static |
Generated from constructor MR::Box1f::Box1f.
Calls MR_Box1f_Construct_2(). The reference to the parameter min might be preserved in the constructed object. The reference to the parameter max might be preserved in the constructed object.
| auto meshlib::Box1f::contains_float | ( | pt:& | f32 | ) | const -> bool |
checks whether given point is inside (including the surface) of this box Generated from method MR::Box1f::contains.
Calls MR_Box1f_contains_float().
| auto meshlib::Box1f::contains_mr_box1f | ( | otherbox:&meshlib::Box1f | ) | const -> bool |
checks whether given box is fully inside (the surfaces may touch) of this box Generated from method MR::Box1f::contains.
Calls MR_Box1f_contains_MR_Box1f().
| auto meshlib::Box1f::corner | ( | c:& bool | ) | const -> f32 |
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::Box1f::corner.
Calls MR_Box1f_corner().
| auto meshlib::Box1f::diagonal | ( | ) | const -> f32 |
computes length from min to max Generated from method MR::Box1f::diagonal.
Calls MR_Box1f_diagonal().
|
static |
Returns a pointer to a member variable of class MR::Box1f named elements.
Calls MR_Box1f_Get_elements().
| auto meshlib::Box1f::expanded | ( | expansion:& | f32 | ) | const -> meshlib::Box1f |
decreases min and increased max on given value Generated from method MR::Box1f::expanded.
Calls MR_Box1f_expanded().
|
static |
Generated from method MR::Box1f::fromMinAndSize.
Calls MR_Box1f_fromMinAndSize().
| auto meshlib::Box1f::get_box_closest_point_to | ( | pt:& | f32 | ) | const -> f32 |
returns closest point in the box to given point Generated from method MR::Box1f::getBoxClosestPointTo.
Calls MR_Box1f_getBoxClosestPointTo().
| auto meshlib::Box1f::get_distance_sq_float | ( | pt:& | f32 | ) | const -> f32 |
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::Box1f::getDistanceSq.
Calls MR_Box1f_getDistanceSq_float().
| auto meshlib::Box1f::get_distance_sq_mr_box1f | ( | b:&meshlib::Box1f | ) | const -> f32 |
returns squared distance between this box and given one; returns zero if the boxes touch or intersect Generated from method MR::Box1f::getDistanceSq.
Calls MR_Box1f_getDistanceSq_MR_Box1f().
|
static |
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::Box1f::getMaxBoxCorner.
Calls MR_Box1f_getMaxBoxCorner().
|
static |
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::Box1f::getMinBoxCorner.
Calls MR_Box1f_getMinBoxCorner().
| auto meshlib::Box1f::get_projection | ( | pt:& | f32 | ) | const -> f32 |
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::Box1f::getProjection.
Calls MR_Box1f_getProjection().
| void meshlib::Box1f::include_float | ( | pt:& | f32 | ) |
minimally increases the box to include given point Generated from method MR::Box1f::include.
Calls MR_Box1f_include_float().
| void meshlib::Box1f::include_mr_box1f | ( | b:&meshlib::Box1f | ) |
minimally increases the box to include another box Generated from method MR::Box1f::include.
Calls MR_Box1f_include_MR_Box1f().
| auto meshlib::Box1f::index | ( | e:core::ffi::c_int | ) | const -> &f32 |
min/max access by 0/1 index Generated from method MR::Box1f::operator[].
Calls MR_Box1f_index().
| auto meshlib::Box1f::index_mut | ( | e:core::ffi::c_int | ) | -> &mut f32 |
Generated from method MR::Box1f::operator[].
Calls MR_Box1f_index_mut().
| auto meshlib::Box1f::insignificantly_expanded | ( | ) | const -> meshlib::Box1f |
decreases min and increases max to their closest representable value Generated from method MR::Box1f::insignificantlyExpanded.
Calls MR_Box1f_insignificantlyExpanded().
| auto meshlib::Box1f::intersect | ( | b:&meshlib::Box1f | ) | -> &mut meshlib::Box1f |
Generated from method MR::Box1f::intersect.
Calls MR_Box1f_intersect().
| auto meshlib::Box1f::intersection | ( | b:&meshlib::Box1f | ) | const -> meshlib::Box1f |
computes intersection between this and other box Generated from method MR::Box1f::intersection.
Calls MR_Box1f_intersection().
| auto meshlib::Box1f::intersects | ( | b:&meshlib::Box1f | ) | const -> bool |
checks whether this box intersects or touches given box Generated from method MR::Box1f::intersects.
Calls MR_Box1f_intersects().
|
static |
create invalid box by default
Calls MR_Box1f_DefaultConstruct().
| auto meshlib::Box1f::op_equal | ( | a:&meshlib::Box1f | ) | const -> bool |
Generated from method MR::Box1f::operator==.
Calls MR_equal_MR_Box1f().
| auto meshlib::Box1f::op_not_equal | ( | a:&meshlib::Box1f | ) | const -> bool |
Generated from method MR::Box1f::operator!=.
Calls MR_not_equal_MR_Box1f().
| auto meshlib::Box1f::size | ( | ) | const -> f32 |
computes size of the box in all dimensions Generated from method MR::Box1f::size.
Calls MR_Box1f_size().
| auto meshlib::Box1f::valid | ( | ) | const -> bool |
true if the box contains at least one point Generated from method MR::Box1f::valid.
Calls MR_Box1f_valid().
| auto meshlib::Box1f::volume | ( | ) | const -> f32 |
computes the volume of this box Generated from method MR::Box1f::volume.
Calls MR_Box1f_volume().
| f32 meshlib::Box1f::max |
| f32 meshlib::Box1f::min |