Class BoundingBox
java.lang.Object
com.raylib.BoundingBox
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal MemorySegment
The native FFI MemorySegment that holds the data this object wraps. -
Constructor Summary
ConstructorsConstructorDescriptionConstruct with auto memory allocator and fields initialized to zero.BoundingBox
(Vector3 min, Vector3 max) Construct with auto memory allocator and fields initialized as specifiedBoundingBox
(MemorySegment memorySegment) Construct by wrapping around an already allocated MemorySegment, perhaps from another objectBoundingBox
(SegmentAllocator arena) Construct with your owm memory allocator and fields not initializedBoundingBox
(SegmentAllocator arena, Vector3 min, Vector3 max) Construct with your own memory allocator and fields initialized as specified -
Method Summary
Modifier and TypeMethodDescriptionstatic BoundingBox
allocateArray
(long elementCount) Allocate an array of BoundingBoxstatic BoundingBox
allocateArray
(long elementCount, SegmentAllocator allocator) Allocate an array of BoundingBoxboolean
Equality is tested on basis of both wrapper objects must refer to same native memory location to be considered equalgetArrayElement
(int index) getMax()
Maximum vertex box-cornergetMin()
Minimum vertex box-cornerint
hashCode()
max()
Maximum vertex box-cornerMaximum vertex box-cornermin()
Minimum vertex box-cornerMinimum vertex box-cornervoid
Maximum vertex box-cornervoid
Minimum vertex box-corner
-
Field Details
-
memorySegment
The native FFI MemorySegment that holds the data this object wraps.
-
-
Constructor Details
-
BoundingBox
public BoundingBox()Construct with auto memory allocator and fields initialized to zero. -
BoundingBox
Construct with your owm memory allocator and fields not initialized -
BoundingBox
Construct by wrapping around an already allocated MemorySegment, perhaps from another object -
BoundingBox
-
BoundingBox
Construct with your own memory allocator and fields initialized as specified- Parameters:
min
- Minimum vertex box-cornermax
- Maximum vertex box-corner
-
-
Method Details
-
equals
-
hashCode
-
getArrayElement
-
allocateArray
Allocate an array of BoundingBox -
allocateArray
Allocate an array of BoundingBox -
getMin
Minimum vertex box-corner -
setMin
Minimum vertex box-corner -
min
Minimum vertex box-corner -
min
Minimum vertex box-corner -
getMax
Maximum vertex box-corner -
setMax
Maximum vertex box-corner -
max
Maximum vertex box-corner -
max
Maximum vertex box-corner
-