Public Member Functions | |
| auto | assign_from_another (_other:&meshlib::Box_unsigned_short) -> &mut meshlib::Box_unsigned_short |
| auto | index (e:core::ffi::c_int) const -> &core::ffi::c_ushort |
| auto | index_mut (e:core::ffi::c_int) -> &mut core::ffi::c_ushort |
| auto | valid () const -> bool |
| auto | center () const -> core::ffi::c_ushort |
| auto | corner (c:&bool) const -> core::ffi::c_ushort |
| auto | size () const -> core::ffi::c_ushort |
| auto | diagonal () const -> core::ffi::c_ushort |
| auto | volume () const -> core::ffi::c_ushort |
| void | include_unsigned_short (pt:&core::ffi::c_ushort) |
| void | include_mr_box_unsigned_short (b:&meshlib::Box_unsigned_short) |
| auto | contains_unsigned_short (pt:&core::ffi::c_ushort) const -> bool |
| auto | contains_mr_box_unsigned_short (otherbox:&meshlib::Box_unsigned_short) const -> bool |
| auto | get_box_closest_point_to (pt:&core::ffi::c_ushort) const -> core::ffi::c_ushort |
| auto | intersects (b:&meshlib::Box_unsigned_short) const -> bool |
| auto | intersection (b:&meshlib::Box_unsigned_short) const -> meshlib::Owned< meshlib::Box_unsigned_short > |
| auto | intersect (b:&meshlib::Box_unsigned_short) -> &mut meshlib::Box_unsigned_short |
| auto | get_distance_sq_mr_box_unsigned_short (b:&meshlib::Box_unsigned_short) const -> core::ffi::c_ushort |
| auto | get_distance_sq_unsigned_short (pt:&core::ffi::c_ushort) const -> core::ffi::c_ushort |
| auto | get_projection (pt:&core::ffi::c_ushort) const -> core::ffi::c_ushort |
| auto | expanded (expansion:&core::ffi::c_ushort) const -> meshlib::Owned< meshlib::Box_unsigned_short > |
| auto | insignificantly_expanded () const -> meshlib::Owned< meshlib::Box_unsigned_short > |
| auto | op_equal (a:&meshlib::Box_unsigned_short) const -> bool |
| auto | op_not_equal (a:&meshlib::Box_unsigned_short) const -> bool |
| auto | min () const -> &core::ffi::c_ushort |
| auto | min_mut () -> &mut core::ffi::c_ushort |
| void | set_min (value:core::ffi::c_ushort) |
| auto | max () const -> &core::ffi::c_ushort |
| auto | max_mut () -> &mut core::ffi::c_ushort |
| void | set_max (value:core::ffi::c_ushort) |
Static Public Member Functions | |
| static auto | new () -> meshlib::Owned< meshlib::Box_unsigned_short > |
| static auto | construct_from_another (_other:&meshlib::Box_unsigned_short) -> meshlib::Owned< meshlib::Box_unsigned_short > |
| static auto | construct_2 (min:&core::ffi::c_ushort, max:&core::ffi::c_ushort) -> meshlib::Owned< meshlib::Box_unsigned_short > |
| static auto | construct_1 (_1:&meshlib::NoInit) -> meshlib::Owned< meshlib::Box_unsigned_short > |
| static auto | from_min_and_size (min:&core::ffi::c_ushort, size:&core::ffi::c_ushort) -> meshlib::Owned< meshlib::Box_unsigned_short > |
| static auto | get_min_box_corner (n:&core::ffi::c_ushort) -> bool |
| static auto | get_max_box_corner (n:&core::ffi::c_ushort) -> bool |
| static auto | elements () -> *const core::ffi::c_int |
| Static Public Member Functions inherited from meshlib::CppClass | |
| static void | destroy (ptr:*mut Self) |
| Static Public Member Functions inherited from meshlib::CppCopy | |
| static auto | copy (ptr:*const Self) -> *mut Self |
Box given by its min- and max- corners Generated from class MR::Box<unsigned short>. Derived classes: Direct: (non-virtual) MR::SimpleVolumeMinMaxU16
Generated from class MR::Box<unsigned short>. Heap-allocated instances are held in Owned<Box_unsigned_short>.
| auto meshlib::Box_unsigned_short::assign_from_another | ( | _other:&meshlib::Box_unsigned_short | ) | -> &mut meshlib::Box_unsigned_short |
Generated from method MR::Box<unsigned short>::operator=.
Calls MR_Box_unsigned_short_AssignFromAnother(). The reference to things referred to by the parameter _other (if any) might be preserved in this object.
| auto meshlib::Box_unsigned_short::center | ( | ) | const -> core::ffi::c_ushort |
computes center of the box Generated from method MR::Box<unsigned short>::center.
Calls MR_Box_unsigned_short_center().
|
static |
Generated from constructor MR::Box<unsigned short>::Box.
Calls MR_Box_unsigned_short_Construct_1(). The reference to the parameter _1 might be preserved in the constructed object.
|
static |
Generated from constructor MR::Box<unsigned short>::Box.
Calls MR_Box_unsigned_short_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.
|
static |
Generated from constructor MR::Box<unsigned short>::Box.
Calls MR_Box_unsigned_short_ConstructFromAnother(). The reference to things referred to by the parameter _other (if any) might be preserved in the constructed object.
| auto meshlib::Box_unsigned_short::contains_mr_box_unsigned_short | ( | otherbox:&meshlib::Box_unsigned_short | ) | const -> bool |
checks whether given box is fully inside (the surfaces may touch) of this box Generated from method MR::Box<unsigned short>::contains.
Calls MR_Box_unsigned_short_contains_MR_Box_unsigned_short().
| auto meshlib::Box_unsigned_short::contains_unsigned_short | ( | pt:&core::ffi::c_ushort | ) | const -> bool |
checks whether given point is inside (including the surface) of this box Generated from method MR::Box<unsigned short>::contains.
Calls MR_Box_unsigned_short_contains_unsigned_short().
| auto meshlib::Box_unsigned_short::corner | ( | c:& bool | ) | const -> core::ffi::c_ushort |
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::Box<unsigned short>::corner.
Calls MR_Box_unsigned_short_corner().
| auto meshlib::Box_unsigned_short::diagonal | ( | ) | const -> core::ffi::c_ushort |
computes length from min to max Generated from method MR::Box<unsigned short>::diagonal.
Calls MR_Box_unsigned_short_diagonal().
|
static |
Returns a pointer to a member variable of class MR::Box<unsigned short> named elements.
Calls MR_Box_unsigned_short_Get_elements().
| auto meshlib::Box_unsigned_short::expanded | ( | expansion:&core::ffi::c_ushort | ) | const -> meshlib::Owned< meshlib::Box_unsigned_short > |
decreases min and increased max on given value Generated from method MR::Box<unsigned short>::expanded.
Calls MR_Box_unsigned_short_expanded().
|
static |
Generated from method MR::Box<unsigned short>::fromMinAndSize.
Calls MR_Box_unsigned_short_fromMinAndSize().
| auto meshlib::Box_unsigned_short::get_box_closest_point_to | ( | pt:&core::ffi::c_ushort | ) | const -> core::ffi::c_ushort |
returns closest point in the box to given point Generated from method MR::Box<unsigned short>::getBoxClosestPointTo.
Calls MR_Box_unsigned_short_getBoxClosestPointTo().
| auto meshlib::Box_unsigned_short::get_distance_sq_mr_box_unsigned_short | ( | b:&meshlib::Box_unsigned_short | ) | const -> core::ffi::c_ushort |
returns squared distance between this box and given one; returns zero if the boxes touch or intersect Generated from method MR::Box<unsigned short>::getDistanceSq.
Calls MR_Box_unsigned_short_getDistanceSq_MR_Box_unsigned_short().
| auto meshlib::Box_unsigned_short::get_distance_sq_unsigned_short | ( | pt:&core::ffi::c_ushort | ) | const -> core::ffi::c_ushort |
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::Box<unsigned short>::getDistanceSq.
Calls MR_Box_unsigned_short_getDistanceSq_unsigned_short().
|
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::Box<unsigned short>::getMaxBoxCorner.
Calls MR_Box_unsigned_short_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::Box<unsigned short>::getMinBoxCorner.
Calls MR_Box_unsigned_short_getMinBoxCorner().
| auto meshlib::Box_unsigned_short::get_projection | ( | pt:&core::ffi::c_ushort | ) | const -> core::ffi::c_ushort |
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::Box<unsigned short>::getProjection.
Calls MR_Box_unsigned_short_getProjection().
| void meshlib::Box_unsigned_short::include_mr_box_unsigned_short | ( | b:&meshlib::Box_unsigned_short | ) |
minimally increases the box to include another box Generated from method MR::Box<unsigned short>::include.
Calls MR_Box_unsigned_short_include_MR_Box_unsigned_short().
| void meshlib::Box_unsigned_short::include_unsigned_short | ( | pt:&core::ffi::c_ushort | ) |
minimally increases the box to include given point Generated from method MR::Box<unsigned short>::include.
Calls MR_Box_unsigned_short_include_unsigned_short().
| auto meshlib::Box_unsigned_short::index | ( | e:core::ffi::c_int | ) | const -> &core::ffi::c_ushort |
min/max access by 0/1 index Generated from method MR::Box<unsigned short>::operator[].
Calls MR_Box_unsigned_short_index().
| auto meshlib::Box_unsigned_short::index_mut | ( | e:core::ffi::c_int | ) | -> &mut core::ffi::c_ushort |
Generated from method MR::Box<unsigned short>::operator[].
Calls MR_Box_unsigned_short_index_mut().
| auto meshlib::Box_unsigned_short::insignificantly_expanded | ( | ) | const -> meshlib::Owned< meshlib::Box_unsigned_short > |
decreases min and increases max to their closest representable value Generated from method MR::Box<unsigned short>::insignificantlyExpanded.
Calls MR_Box_unsigned_short_insignificantlyExpanded().
| auto meshlib::Box_unsigned_short::intersect | ( | b:&meshlib::Box_unsigned_short | ) | -> &mut meshlib::Box_unsigned_short |
Generated from method MR::Box<unsigned short>::intersect.
Calls MR_Box_unsigned_short_intersect().
| auto meshlib::Box_unsigned_short::intersection | ( | b:&meshlib::Box_unsigned_short | ) | const -> meshlib::Owned< meshlib::Box_unsigned_short > |
computes intersection between this and other box Generated from method MR::Box<unsigned short>::intersection.
Calls MR_Box_unsigned_short_intersection().
| auto meshlib::Box_unsigned_short::intersects | ( | b:&meshlib::Box_unsigned_short | ) | const -> bool |
checks whether this box intersects or touches given box Generated from method MR::Box<unsigned short>::intersects.
Calls MR_Box_unsigned_short_intersects().
| auto meshlib::Box_unsigned_short::max | ( | ) | const -> &core::ffi::c_ushort |
Returns a pointer to a member variable of class MR::Box<unsigned short> named max.
Calls MR_Box_unsigned_short_Get_max(). The reference to this object might be preserved as the return value.
| auto meshlib::Box_unsigned_short::max_mut | ( | ) | -> &mut core::ffi::c_ushort |
Returns a mutable pointer to a member variable of class MR::Box<unsigned short> named max.
Calls MR_Box_unsigned_short_GetMutable_max(). The reference to this object might be preserved as the return value.
| auto meshlib::Box_unsigned_short::min | ( | ) | const -> &core::ffi::c_ushort |
Returns a pointer to a member variable of class MR::Box<unsigned short> named min.
Calls MR_Box_unsigned_short_Get_min(). The reference to this object might be preserved as the return value.
| auto meshlib::Box_unsigned_short::min_mut | ( | ) | -> &mut core::ffi::c_ushort |
Returns a mutable pointer to a member variable of class MR::Box<unsigned short> named min.
Calls MR_Box_unsigned_short_GetMutable_min(). The reference to this object might be preserved as the return value.
|
static |
create invalid box by default
Calls MR_Box_unsigned_short_DefaultConstruct().
| auto meshlib::Box_unsigned_short::op_equal | ( | a:&meshlib::Box_unsigned_short | ) | const -> bool |
Generated from method MR::Box<unsigned short>::operator==.
Calls MR_equal_MR_Box_unsigned_short().
| auto meshlib::Box_unsigned_short::op_not_equal | ( | a:&meshlib::Box_unsigned_short | ) | const -> bool |
Generated from method MR::Box<unsigned short>::operator!=.
Calls MR_not_equal_MR_Box_unsigned_short().
| void meshlib::Box_unsigned_short::set_max | ( | value:core::ffi::c_ushort | ) |
Modifies a member variable of class MR::Box<unsigned short> named max.
Calls MR_Box_unsigned_short_Set_max(). The reference to the parameter value might be preserved in this object in element max.
| void meshlib::Box_unsigned_short::set_min | ( | value:core::ffi::c_ushort | ) |
Modifies a member variable of class MR::Box<unsigned short> named min.
Calls MR_Box_unsigned_short_Set_min(). The reference to the parameter value might be preserved in this object in element min.
| auto meshlib::Box_unsigned_short::size | ( | ) | const -> core::ffi::c_ushort |
computes size of the box in all dimensions Generated from method MR::Box<unsigned short>::size.
Calls MR_Box_unsigned_short_size().
| auto meshlib::Box_unsigned_short::valid | ( | ) | const -> bool |
true if the box contains at least one point Generated from method MR::Box<unsigned short>::valid.
Calls MR_Box_unsigned_short_valid().
| auto meshlib::Box_unsigned_short::volume | ( | ) | const -> core::ffi::c_ushort |
computes the volume of this box Generated from method MR::Box<unsigned short>::volume.
Calls MR_Box_unsigned_short_volume().