Public Member Functions | |
| Box1d (java.lang.foreign.MemorySegment segment, java.lang.Object owner) | |
| Box1d | copy () |
| void | set (Box1d other) |
| double | min () |
| void | setMin (double value) |
| double | max () |
| void | setMax (double value) |
| Box1d () | |
| Box1d (double min, double max) | |
| Box1d (meshlib.NoInit _1) | |
| double | index (int e) |
| java.lang.foreign.MemorySegment | index_mut (int e) |
| boolean | valid () |
| double | center () |
| double | corner (boolean c) |
| double | size () |
| double | diagonal () |
| double | volume () |
| void | include (double pt) |
| void | include (meshlib.Box1d b) |
| boolean | contains (double pt) |
| boolean | contains (meshlib.Box1d otherbox) |
| double | getBoxClosestPointTo (double pt) |
| boolean | intersects (meshlib.Box1d b) |
| meshlib.Box1d | intersection (meshlib.Box1d b) |
| meshlib.Box1d | intersect (meshlib.Box1d b) |
| double | getDistanceSq (meshlib.Box1d b) |
| double | getDistanceSq (double pt) |
| double | getProjection (double pt) |
| meshlib.Box1d | expanded (double expansion) |
| meshlib.Box1d | insignificantlyExpanded () |
| boolean | opEqual (meshlib.Box1d a) |
| boolean | opNotEqual (meshlib.Box1d a) |
| Public Member Functions inherited from meshlib.CppStruct | |
| final java.lang.foreign.MemorySegment | rawPointer () |
Static Public Member Functions | |
| static meshlib.Box1d | fromMinAndSize (double min, double size) |
| static boolean | getMinBoxCorner (double n) |
| static boolean | getMaxBoxCorner (double n) |
| static int | elements () |
Static Public Attributes | |
| static final java.lang.foreign.StructLayout | LAYOUT = meshlib.Ffi.structLayout(new java.lang.String[]{"min", "max"}, new java.lang.foreign.MemoryLayout[]{java.lang.foreign.ValueLayout.JAVA_DOUBLE, java.lang.foreign.ValueLayout.JAVA_DOUBLE}) |
| static final long | OFF_min = LAYOUT.byteOffset(java.lang.foreign.MemoryLayout.PathElement.groupElement("min")) |
| static final long | OFF_max = LAYOUT.byteOffset(java.lang.foreign.MemoryLayout.PathElement.groupElement("max")) |
Additional Inherited Members | |
| Protected Member Functions inherited from meshlib.CppStruct | |
| CppStruct (java.lang.foreign.MemorySegment segment, java.lang.Object owner) | |
| Protected Attributes inherited from meshlib.CppStruct | |
| final java.lang.foreign.MemorySegment | segment |
Box given by its min- and max- corners Generated from class MR::Box1d.
Has the same layout as the C++ struct, the fields are accessed in place in native memory.
| meshlib.Box1d.Box1d | ( | java.lang.foreign.MemorySegment | segment, |
| java.lang.Object | owner ) |
Wraps a segment holding the struct. owner is kept alive as long as this wrapper is. Not for normal use.
| meshlib.Box1d.Box1d | ( | ) |
create invalid box by default
Calls MR_Box1d_DefaultConstruct().
| meshlib.Box1d.Box1d | ( | double | min, |
| double | max ) |
Generated from constructor MR::Box1d::Box1d. 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.
Calls MR_Box1d_Construct_2().
| meshlib.Box1d.Box1d | ( | meshlib.NoInit | _1 | ) |
Generated from constructor MR::Box1d::Box1d. The reference to the parameter _1 might be preserved in the constructed object.
Calls MR_Box1d_Construct_1().
| double meshlib.Box1d.center | ( | ) |
computes center of the box Generated from method MR::Box1d::center.
Calls MR_Box1d_center().
| boolean meshlib.Box1d.contains | ( | double | pt | ) |
checks whether given point is inside (including the surface) of this box Generated from method MR::Box1d::contains.
Calls MR_Box1d_contains_double().
| boolean meshlib.Box1d.contains | ( | meshlib.Box1d | otherbox | ) |
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().
| Box1d meshlib.Box1d.copy | ( | ) |
A copy of the struct, in its own memory.
| double meshlib.Box1d.corner | ( | boolean | 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::Box1d::corner.
Calls MR_Box1d_corner().
| double meshlib.Box1d.diagonal | ( | ) |
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().
| meshlib.Box1d meshlib.Box1d.expanded | ( | double | expansion | ) |
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().
| double meshlib.Box1d.getBoxClosestPointTo | ( | double | pt | ) |
returns closest point in the box to given point Generated from method MR::Box1d::getBoxClosestPointTo.
Calls MR_Box1d_getBoxClosestPointTo().
| double meshlib.Box1d.getDistanceSq | ( | double | 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::Box1d::getDistanceSq.
Calls MR_Box1d_getDistanceSq_double().
| double meshlib.Box1d.getDistanceSq | ( | meshlib.Box1d | b | ) |
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().
| double meshlib.Box1d.getProjection | ( | double | 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::Box1d::getProjection.
Calls MR_Box1d_getProjection().
| void meshlib.Box1d.include | ( | double | pt | ) |
minimally increases the box to include given point Generated from method MR::Box1d::include.
Calls MR_Box1d_include_double().
| void meshlib.Box1d.include | ( | meshlib.Box1d | b | ) |
minimally increases the box to include another box Generated from method MR::Box1d::include.
Calls MR_Box1d_include_MR_Box1d().
| double meshlib.Box1d.index | ( | int | e | ) |
min/max access by 0/1 index Generated from method MR::Box1d::operator[].
Calls MR_Box1d_index().
| java.lang.foreign.MemorySegment meshlib.Box1d.index_mut | ( | int | e | ) |
Generated from method MR::Box1d::operator[].
Calls MR_Box1d_index_mut(). Some types are raw C types, see the C bindings for the details.
| meshlib.Box1d meshlib.Box1d.insignificantlyExpanded | ( | ) |
decreases min and increases max to their closest representable value Generated from method MR::Box1d::insignificantlyExpanded.
Calls MR_Box1d_insignificantlyExpanded().
| meshlib.Box1d meshlib.Box1d.intersect | ( | meshlib.Box1d | b | ) |
Generated from method MR::Box1d::intersect.
Calls MR_Box1d_intersect().
| meshlib.Box1d meshlib.Box1d.intersection | ( | meshlib.Box1d | b | ) |
computes intersection between this and other box Generated from method MR::Box1d::intersection.
Calls MR_Box1d_intersection().
| boolean meshlib.Box1d.intersects | ( | meshlib.Box1d | b | ) |
checks whether this box intersects or touches given box Generated from method MR::Box1d::intersects.
Calls MR_Box1d_intersects().
| double meshlib.Box1d.max | ( | ) |
| double meshlib.Box1d.min | ( | ) |
| boolean meshlib.Box1d.opEqual | ( | meshlib.Box1d | a | ) |
Generated from method MR::Box1d::operator==.
Calls MR_equal_MR_Box1d().
| boolean meshlib.Box1d.opNotEqual | ( | meshlib.Box1d | a | ) |
Generated from method MR::Box1d::operator!=.
Calls MR_not_equal_MR_Box1d().
| void meshlib.Box1d.set | ( | Box1d | other | ) |
Overwrites the contents with those of another struct.
| void meshlib.Box1d.setMax | ( | double | value | ) |
| void meshlib.Box1d.setMin | ( | double | value | ) |
| double meshlib.Box1d.size | ( | ) |
computes size of the box in all dimensions Generated from method MR::Box1d::size.
Calls MR_Box1d_size().
| boolean meshlib.Box1d.valid | ( | ) |
true if the box contains at least one point Generated from method MR::Box1d::valid.
Calls MR_Box1d_valid().
| double meshlib.Box1d.volume | ( | ) |
computes the volume of this box Generated from method MR::Box1d::volume.
Calls MR_Box1d_volume().
|
static |
The native layout of the struct.
|
static |
|
static |