Public Member Functions | |
| auto | index (e:core::ffi::c_int) const -> &f64 |
| auto | index_mut (e:core::ffi::c_int) -> &mut f64 |
| auto | valid () const -> bool |
| auto | center () const -> f64 |
| auto | corner (c:&bool) const -> f64 |
| auto | size () const -> f64 |
| auto | diagonal () const -> f64 |
| auto | volume () const -> f64 |
| void | include_double (pt:&f64) |
| void | include_mr_box1d (b:&meshlib::Box1d) |
| auto | contains_double (pt:&f64) const -> bool |
| auto | contains_mr_box1d (otherbox:&meshlib::Box1d) const -> bool |
| auto | get_box_closest_point_to (pt:&f64) const -> f64 |
| auto | intersects (b:&meshlib::Box1d) const -> bool |
| auto | intersection (b:&meshlib::Box1d) const -> meshlib::Box1d |
| auto | intersect (b:&meshlib::Box1d) -> &mut meshlib::Box1d |
| auto | get_distance_sq_mr_box1d (b:&meshlib::Box1d) const -> f64 |
| auto | get_distance_sq_double (pt:&f64) const -> f64 |
| auto | get_projection (pt:&f64) const -> f64 |
| auto | expanded (expansion:&f64) const -> meshlib::Box1d |
| auto | insignificantly_expanded () const -> meshlib::Box1d |
| auto | op_equal (a:&meshlib::Box1d) const -> bool |
| auto | op_not_equal (a:&meshlib::Box1d) const -> bool |
Static Public Member Functions | |
| static auto | new () -> meshlib::Box1d |
| static auto | construct_2 (min:&f64, max:&f64) -> meshlib::Box1d |
| static auto | construct_1 (_1:&meshlib::NoInit) -> meshlib::Box1d |
| static auto | from_min_and_size (min:&f64, size:&f64) -> meshlib::Box1d |
| static auto | get_min_box_corner (n:&f64) -> bool |
| static auto | get_max_box_corner (n:&f64) -> bool |
| static auto | elements () -> *const core::ffi::c_int |
Public Attributes | |
| f64 | min |
| f64 | max |
Box given by its min- and max- corners Generated from class MR::Box1d.
Generated from struct MR::Box1d. The fields are accessed directly.
| auto meshlib::Box1d::center | ( | ) | const -> f64 |
computes center of the box Generated from method MR::Box1d::center.
Calls MR_Box1d_center().
|
static |
Generated from constructor MR::Box1d::Box1d.
Calls MR_Box1d_Construct_1(). The reference to the parameter _1 might be preserved in the constructed object.
|
static |
Generated from constructor MR::Box1d::Box1d.
Calls MR_Box1d_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::Box1d::contains_double | ( | pt:& | f64 | ) | const -> bool |
checks whether given point is inside (including the surface) of this box Generated from method MR::Box1d::contains.
Calls MR_Box1d_contains_double().
| auto meshlib::Box1d::contains_mr_box1d | ( | otherbox:&meshlib::Box1d | ) | const -> bool |
checks whether given box is fully inside (the surfaces may touch) of this box Generated from method MR::Box1d::contains.
Calls MR_Box1d_contains_MR_Box1d().
| auto meshlib::Box1d::corner | ( | c:& bool | ) | const -> f64 |
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::Box1d::corner.
Calls MR_Box1d_corner().
| auto meshlib::Box1d::diagonal | ( | ) | const -> f64 |
computes length from min to max Generated from method MR::Box1d::diagonal.
Calls MR_Box1d_diagonal().
|
static |
Returns a pointer to a member variable of class MR::Box1d named elements.
Calls MR_Box1d_Get_elements().
| auto meshlib::Box1d::expanded | ( | expansion:& | f64 | ) | const -> meshlib::Box1d |
decreases min and increased max on given value Generated from method MR::Box1d::expanded.
Calls MR_Box1d_expanded().
|
static |
Generated from method MR::Box1d::fromMinAndSize.
Calls MR_Box1d_fromMinAndSize().
| auto meshlib::Box1d::get_box_closest_point_to | ( | pt:& | f64 | ) | const -> f64 |
returns closest point in the box to given point Generated from method MR::Box1d::getBoxClosestPointTo.
Calls MR_Box1d_getBoxClosestPointTo().
| auto meshlib::Box1d::get_distance_sq_double | ( | pt:& | f64 | ) | const -> f64 |
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::Box1d::getDistanceSq.
Calls MR_Box1d_getDistanceSq_double().
| auto meshlib::Box1d::get_distance_sq_mr_box1d | ( | b:&meshlib::Box1d | ) | const -> f64 |
returns squared distance between this box and given one; returns zero if the boxes touch or intersect Generated from method MR::Box1d::getDistanceSq.
Calls MR_Box1d_getDistanceSq_MR_Box1d().
|
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::Box1d::getMaxBoxCorner.
Calls MR_Box1d_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::Box1d::getMinBoxCorner.
Calls MR_Box1d_getMinBoxCorner().
| auto meshlib::Box1d::get_projection | ( | pt:& | f64 | ) | const -> f64 |
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::Box1d::getProjection.
Calls MR_Box1d_getProjection().
| void meshlib::Box1d::include_double | ( | pt:& | f64 | ) |
minimally increases the box to include given point Generated from method MR::Box1d::include.
Calls MR_Box1d_include_double().
| void meshlib::Box1d::include_mr_box1d | ( | b:&meshlib::Box1d | ) |
minimally increases the box to include another box Generated from method MR::Box1d::include.
Calls MR_Box1d_include_MR_Box1d().
| auto meshlib::Box1d::index | ( | e:core::ffi::c_int | ) | const -> &f64 |
min/max access by 0/1 index Generated from method MR::Box1d::operator[].
Calls MR_Box1d_index().
| auto meshlib::Box1d::index_mut | ( | e:core::ffi::c_int | ) | -> &mut f64 |
Generated from method MR::Box1d::operator[].
Calls MR_Box1d_index_mut().
| auto meshlib::Box1d::insignificantly_expanded | ( | ) | const -> meshlib::Box1d |
decreases min and increases max to their closest representable value Generated from method MR::Box1d::insignificantlyExpanded.
Calls MR_Box1d_insignificantlyExpanded().
| auto meshlib::Box1d::intersect | ( | b:&meshlib::Box1d | ) | -> &mut meshlib::Box1d |
Generated from method MR::Box1d::intersect.
Calls MR_Box1d_intersect().
| auto meshlib::Box1d::intersection | ( | b:&meshlib::Box1d | ) | const -> meshlib::Box1d |
computes intersection between this and other box Generated from method MR::Box1d::intersection.
Calls MR_Box1d_intersection().
| auto meshlib::Box1d::intersects | ( | b:&meshlib::Box1d | ) | const -> bool |
checks whether this box intersects or touches given box Generated from method MR::Box1d::intersects.
Calls MR_Box1d_intersects().
|
static |
create invalid box by default
Calls MR_Box1d_DefaultConstruct().
| auto meshlib::Box1d::op_equal | ( | a:&meshlib::Box1d | ) | const -> bool |
Generated from method MR::Box1d::operator==.
Calls MR_equal_MR_Box1d().
| auto meshlib::Box1d::op_not_equal | ( | a:&meshlib::Box1d | ) | const -> bool |
Generated from method MR::Box1d::operator!=.
Calls MR_not_equal_MR_Box1d().
| auto meshlib::Box1d::size | ( | ) | const -> f64 |
computes size of the box in all dimensions Generated from method MR::Box1d::size.
Calls MR_Box1d_size().
| auto meshlib::Box1d::valid | ( | ) | const -> bool |
true if the box contains at least one point Generated from method MR::Box1d::valid.
Calls MR_Box1d_valid().
| auto meshlib::Box1d::volume | ( | ) | const -> f64 |
computes the volume of this box Generated from method MR::Box1d::volume.
Calls MR_Box1d_volume().
| f64 meshlib::Box1d::max |
| f64 meshlib::Box1d::min |