Public Member Functions | |
| Box1i64 (java.lang.foreign.MemorySegment segment, java.lang.Object owner) | |
| Box1i64 | copy () |
| void | set (Box1i64 other) |
| long | min () |
| void | setMin (long value) |
| long | max () |
| void | setMax (long value) |
| Box1i64 () | |
| Box1i64 (long min, long max) | |
| Box1i64 (meshlib.NoInit _1) | |
| long | index (int e) |
| java.lang.foreign.MemorySegment | index_mut (int e) |
| boolean | valid () |
| long | center () |
| long | corner (boolean c) |
| long | size () |
| long | diagonal () |
| long | volume () |
| void | include (long pt) |
| void | include (meshlib.Box1i64 b) |
| boolean | contains (long pt) |
| boolean | contains (meshlib.Box1i64 otherbox) |
| long | getBoxClosestPointTo (long pt) |
| boolean | intersects (meshlib.Box1i64 b) |
| meshlib.Box1i64 | intersection (meshlib.Box1i64 b) |
| meshlib.Box1i64 | intersect (meshlib.Box1i64 b) |
| long | getDistanceSq (meshlib.Box1i64 b) |
| long | getDistanceSq (long pt) |
| long | getProjection (long pt) |
| meshlib.Box1i64 | expanded (long expansion) |
| meshlib.Box1i64 | insignificantlyExpanded () |
| boolean | opEqual (meshlib.Box1i64 a) |
| boolean | opNotEqual (meshlib.Box1i64 a) |
| Public Member Functions inherited from meshlib.CppStruct | |
| final java.lang.foreign.MemorySegment | rawPointer () |
Static Public Member Functions | |
| static meshlib.Box1i64 | fromMinAndSize (long min, long size) |
| static boolean | getMinBoxCorner (long n) |
| static boolean | getMaxBoxCorner (long 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_LONG, java.lang.foreign.ValueLayout.JAVA_LONG}) |
| 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::Box1i64.
Has the same layout as the C++ struct, the fields are accessed in place in native memory.
| meshlib.Box1i64.Box1i64 | ( | 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.Box1i64.Box1i64 | ( | ) |
create invalid box by default
Calls MR_Box1i64_DefaultConstruct().
| meshlib.Box1i64.Box1i64 | ( | long | min, |
| long | max ) |
Generated from constructor MR::Box1i64::Box1i64. 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_Box1i64_Construct_2().
| meshlib.Box1i64.Box1i64 | ( | meshlib.NoInit | _1 | ) |
Generated from constructor MR::Box1i64::Box1i64. The reference to the parameter _1 might be preserved in the constructed object.
Calls MR_Box1i64_Construct_1().
| long meshlib.Box1i64.center | ( | ) |
computes center of the box Generated from method MR::Box1i64::center.
Calls MR_Box1i64_center().
| boolean meshlib.Box1i64.contains | ( | long | pt | ) |
checks whether given point is inside (including the surface) of this box Generated from method MR::Box1i64::contains.
Calls MR_Box1i64_contains_int64_t().
| boolean meshlib.Box1i64.contains | ( | meshlib.Box1i64 | otherbox | ) |
checks whether given box is fully inside (the surfaces may touch) of this box Generated from method MR::Box1i64::contains.
Calls MR_Box1i64_contains_MR_Box1i64().
| Box1i64 meshlib.Box1i64.copy | ( | ) |
A copy of the struct, in its own memory.
| long meshlib.Box1i64.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::Box1i64::corner.
Calls MR_Box1i64_corner().
| long meshlib.Box1i64.diagonal | ( | ) |
computes length from min to max Generated from method MR::Box1i64::diagonal.
Calls MR_Box1i64_diagonal().
|
static |
Returns a pointer to a member variable of class MR::Box1i64 named elements.
Calls MR_Box1i64_Get_elements().
| meshlib.Box1i64 meshlib.Box1i64.expanded | ( | long | expansion | ) |
decreases min and increased max on given value Generated from method MR::Box1i64::expanded.
Calls MR_Box1i64_expanded().
|
static |
Generated from method MR::Box1i64::fromMinAndSize.
Calls MR_Box1i64_fromMinAndSize().
| long meshlib.Box1i64.getBoxClosestPointTo | ( | long | pt | ) |
returns closest point in the box to given point Generated from method MR::Box1i64::getBoxClosestPointTo.
Calls MR_Box1i64_getBoxClosestPointTo().
| long meshlib.Box1i64.getDistanceSq | ( | long | 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::Box1i64::getDistanceSq.
Calls MR_Box1i64_getDistanceSq_int64_t().
| long meshlib.Box1i64.getDistanceSq | ( | meshlib.Box1i64 | b | ) |
returns squared distance between this box and given one; returns zero if the boxes touch or intersect Generated from method MR::Box1i64::getDistanceSq.
Calls MR_Box1i64_getDistanceSq_MR_Box1i64().
|
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::Box1i64::getMaxBoxCorner.
Calls MR_Box1i64_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::Box1i64::getMinBoxCorner.
Calls MR_Box1i64_getMinBoxCorner().
| long meshlib.Box1i64.getProjection | ( | long | 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::Box1i64::getProjection.
Calls MR_Box1i64_getProjection().
| void meshlib.Box1i64.include | ( | long | pt | ) |
minimally increases the box to include given point Generated from method MR::Box1i64::include.
Calls MR_Box1i64_include_int64_t().
| void meshlib.Box1i64.include | ( | meshlib.Box1i64 | b | ) |
minimally increases the box to include another box Generated from method MR::Box1i64::include.
Calls MR_Box1i64_include_MR_Box1i64().
| long meshlib.Box1i64.index | ( | int | e | ) |
min/max access by 0/1 index Generated from method MR::Box1i64::operator[].
Calls MR_Box1i64_index().
| java.lang.foreign.MemorySegment meshlib.Box1i64.index_mut | ( | int | e | ) |
Generated from method MR::Box1i64::operator[].
Calls MR_Box1i64_index_mut(). Some types are raw C types, see the C bindings for the details.
| meshlib.Box1i64 meshlib.Box1i64.insignificantlyExpanded | ( | ) |
decreases min and increases max to their closest representable value Generated from method MR::Box1i64::insignificantlyExpanded.
Calls MR_Box1i64_insignificantlyExpanded().
| meshlib.Box1i64 meshlib.Box1i64.intersect | ( | meshlib.Box1i64 | b | ) |
Generated from method MR::Box1i64::intersect.
Calls MR_Box1i64_intersect().
| meshlib.Box1i64 meshlib.Box1i64.intersection | ( | meshlib.Box1i64 | b | ) |
computes intersection between this and other box Generated from method MR::Box1i64::intersection.
Calls MR_Box1i64_intersection().
| boolean meshlib.Box1i64.intersects | ( | meshlib.Box1i64 | b | ) |
checks whether this box intersects or touches given box Generated from method MR::Box1i64::intersects.
Calls MR_Box1i64_intersects().
| long meshlib.Box1i64.max | ( | ) |
| long meshlib.Box1i64.min | ( | ) |
| boolean meshlib.Box1i64.opEqual | ( | meshlib.Box1i64 | a | ) |
Generated from method MR::Box1i64::operator==.
Calls MR_equal_MR_Box1i64().
| boolean meshlib.Box1i64.opNotEqual | ( | meshlib.Box1i64 | a | ) |
Generated from method MR::Box1i64::operator!=.
Calls MR_not_equal_MR_Box1i64().
| void meshlib.Box1i64.set | ( | Box1i64 | other | ) |
Overwrites the contents with those of another struct.
| void meshlib.Box1i64.setMax | ( | long | value | ) |
| void meshlib.Box1i64.setMin | ( | long | value | ) |
| long meshlib.Box1i64.size | ( | ) |
computes size of the box in all dimensions Generated from method MR::Box1i64::size.
Calls MR_Box1i64_size().
| boolean meshlib.Box1i64.valid | ( | ) |
true if the box contains at least one point Generated from method MR::Box1i64::valid.
Calls MR_Box1i64_valid().
| long meshlib.Box1i64.volume | ( | ) |
computes the volume of this box Generated from method MR::Box1i64::volume.
Calls MR_Box1i64_volume().
|
static |
The native layout of the struct.
|
static |
|
static |