Class BoundingBox

java.lang.Object
com.raylib.BoundingBox

public class BoundingBox extends Object
BoundingBox
  • Field Details

    • memorySegment

      public final MemorySegment 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

      public BoundingBox(SegmentAllocator arena)
      Construct with your owm memory allocator and fields not initialized
    • BoundingBox

      public BoundingBox(MemorySegment memorySegment)
      Construct by wrapping around an already allocated MemorySegment, perhaps from another object
    • BoundingBox

      public BoundingBox(Vector3 min, Vector3 max)
      Construct with auto memory allocator and fields initialized as specified
      Parameters:
      min - Minimum vertex box-corner
      max - Maximum vertex box-corner
    • BoundingBox

      public BoundingBox(SegmentAllocator arena, Vector3 min, Vector3 max)
      Construct with your own memory allocator and fields initialized as specified
      Parameters:
      min - Minimum vertex box-corner
      max - Maximum vertex box-corner
  • Method Details

    • equals

      public boolean equals(Object o)
      Equality is tested on basis of both wrapper objects must refer to same native memory location to be considered equal
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • getArrayElement

      public BoundingBox getArrayElement(int index)
    • allocateArray

      public static BoundingBox allocateArray(long elementCount, SegmentAllocator allocator)
      Allocate an array of BoundingBox
    • allocateArray

      public static BoundingBox allocateArray(long elementCount)
      Allocate an array of BoundingBox
    • getMin

      public Vector3 getMin()
      Minimum vertex box-corner
    • setMin

      public void setMin(Vector3 value)
      Minimum vertex box-corner
    • min

      public Vector3 min()
      Minimum vertex box-corner
    • min

      public BoundingBox min(Vector3 value)
      Minimum vertex box-corner
    • getMax

      public Vector3 getMax()
      Maximum vertex box-corner
    • setMax

      public void setMax(Vector3 value)
      Maximum vertex box-corner
    • max

      public Vector3 max()
      Maximum vertex box-corner
    • max

      public BoundingBox max(Vector3 value)
      Maximum vertex box-corner