Class VkAabbPositionsKHR

java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<VkAabbPositionsKHR>
org.lwjgl.vulkan.VkAabbPositionsKHR
All Implemented Interfaces:
AutoCloseable, org.lwjgl.system.NativeResource, org.lwjgl.system.Pointer
Direct Known Subclasses:
VkAabbPositionsNV

public class VkAabbPositionsKHR extends org.lwjgl.system.Struct<VkAabbPositionsKHR> implements org.lwjgl.system.NativeResource
Structure specifying two opposing corners of an axis-aligned bounding box.
Valid Usage
  • minX must be less than or equal to maxX
  • minY must be less than or equal to maxY
  • minZ must be less than or equal to maxZ

Layout


 struct VkAabbPositionsKHR {
     float minX();
     float minY();
     float minZ();
     float maxX();
     float maxY();
     float maxZ();
 }
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
    An array of VkAabbPositionsKHR structs.

    Nested classes/interfaces inherited from class org.lwjgl.system.Struct

    org.lwjgl.system.Struct.StructValidation

    Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer

    org.lwjgl.system.Pointer.Default
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
    The struct alignment in bytes.
    static final int
    The struct member offsets.
    static final int
    The struct member offsets.
    static final int
    The struct member offsets.
    static final int
    The struct member offsets.
    static final int
    The struct member offsets.
    static final int
    The struct member offsets.
    static final int
    The struct size in bytes.

    Fields inherited from interface org.lwjgl.system.Pointer

    BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates a VkAabbPositionsKHR instance at the current position of the specified ByteBuffer container.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns a new VkAabbPositionsKHR instance allocated with memCalloc.
    calloc(int capacity)
    Returns a new VkAabbPositionsKHR.Buffer instance allocated with memCalloc.
    calloc(int capacity, org.lwjgl.system.MemoryStack stack)
    Returns a new VkAabbPositionsKHR.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.
    calloc(org.lwjgl.system.MemoryStack stack)
    Returns a new VkAabbPositionsKHR instance allocated on the specified MemoryStack and initializes all its bits to zero.
    Returns a new VkAabbPositionsKHR instance allocated with BufferUtils.
    create(int capacity)
    Returns a new VkAabbPositionsKHR.Buffer instance allocated with BufferUtils.
    create(long address)
    Returns a new VkAabbPositionsKHR instance for the specified memory address.
    create(long address, int capacity)
    Create a VkAabbPositionsKHR.Buffer instance at the specified memory.
    static @Nullable VkAabbPositionsKHR
    createSafe(long address)
    Like create, but returns null if address is NULL.
    static @Nullable VkAabbPositionsKHR.Buffer
    createSafe(long address, int capacity)
    Like create, but returns null if address is NULL.
    Returns a new VkAabbPositionsKHR instance allocated with memAlloc.
    malloc(int capacity)
    Returns a new VkAabbPositionsKHR.Buffer instance allocated with memAlloc.
    malloc(int capacity, org.lwjgl.system.MemoryStack stack)
    Returns a new VkAabbPositionsKHR.Buffer instance allocated on the specified MemoryStack.
    malloc(org.lwjgl.system.MemoryStack stack)
    Returns a new VkAabbPositionsKHR instance allocated on the specified MemoryStack.
    float
    the x position of the other opposing corner of a bounding box.
    maxX(float value)
    Sets the specified value to the maxX() field.
    float
    the y position of the other opposing corner of a bounding box.
    maxY(float value)
    Sets the specified value to the maxY() field.
    float
    the z position of the other opposing corner of a bounding box.
    maxZ(float value)
    Sets the specified value to the maxZ() field.
    float
    the x position of one opposing corner of a bounding box.
    minX(float value)
    Sets the specified value to the minX() field.
    float
    the y position of one opposing corner of a bounding box.
    minY(float value)
    Sets the specified value to the minY() field.
    float
    the z position of one opposing corner of a bounding box.
    minZ(float value)
    Sets the specified value to the minZ() field.
    static float
    nmaxX(long struct)
    Unsafe version of maxX().
    static void
    nmaxX(long struct, float value)
    Unsafe version of maxX.
    static float
    nmaxY(long struct)
    Unsafe version of maxY().
    static void
    nmaxY(long struct, float value)
    Unsafe version of maxY.
    static float
    nmaxZ(long struct)
    Unsafe version of maxZ().
    static void
    nmaxZ(long struct, float value)
    Unsafe version of maxZ.
    static float
    nminX(long struct)
    Unsafe version of minX().
    static void
    nminX(long struct, float value)
    Unsafe version of minX.
    static float
    nminY(long struct)
    Unsafe version of minY().
    static void
    nminY(long struct, float value)
    Unsafe version of minY.
    static float
    nminZ(long struct)
    Unsafe version of minZ().
    static void
    nminZ(long struct, float value)
    Unsafe version of minZ.
    set(float minX, float minY, float minZ, float maxX, float maxY, float maxZ)
    Initializes this struct with the specified values.
    Copies the specified struct data to this struct.
    int
     

    Methods inherited from class org.lwjgl.system.Struct

    clear, free, isNull, validate, validate

    Methods inherited from class org.lwjgl.system.Pointer.Default

    address, equals, hashCode, toString

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface org.lwjgl.system.NativeResource

    close, free
  • Field Details

    • SIZEOF

      public static final int SIZEOF
      The struct size in bytes.
    • ALIGNOF

      public static final int ALIGNOF
      The struct alignment in bytes.
    • MINX

      public static final int MINX
      The struct member offsets.
    • MINY

      public static final int MINY
      The struct member offsets.
    • MINZ

      public static final int MINZ
      The struct member offsets.
    • MAXX

      public static final int MAXX
      The struct member offsets.
    • MAXY

      public static final int MAXY
      The struct member offsets.
    • MAXZ

      public static final int MAXZ
      The struct member offsets.
  • Constructor Details

    • VkAabbPositionsKHR

      public VkAabbPositionsKHR(ByteBuffer container)
      Creates a VkAabbPositionsKHR instance at the current position of the specified ByteBuffer container. Changes to the buffer's content will be visible to the struct instance and vice versa.

      The created instance holds a strong reference to the container object.

  • Method Details

    • sizeof

      public int sizeof()
      Specified by:
      sizeof in class org.lwjgl.system.Struct<VkAabbPositionsKHR>
    • minX

      public float minX()
      the x position of one opposing corner of a bounding box.
    • minY

      public float minY()
      the y position of one opposing corner of a bounding box.
    • minZ

      public float minZ()
      the z position of one opposing corner of a bounding box.
    • maxX

      public float maxX()
      the x position of the other opposing corner of a bounding box.
    • maxY

      public float maxY()
      the y position of the other opposing corner of a bounding box.
    • maxZ

      public float maxZ()
      the z position of the other opposing corner of a bounding box.
    • minX

      public VkAabbPositionsKHR minX(float value)
      Sets the specified value to the minX() field.
    • minY

      public VkAabbPositionsKHR minY(float value)
      Sets the specified value to the minY() field.
    • minZ

      public VkAabbPositionsKHR minZ(float value)
      Sets the specified value to the minZ() field.
    • maxX

      public VkAabbPositionsKHR maxX(float value)
      Sets the specified value to the maxX() field.
    • maxY

      public VkAabbPositionsKHR maxY(float value)
      Sets the specified value to the maxY() field.
    • maxZ

      public VkAabbPositionsKHR maxZ(float value)
      Sets the specified value to the maxZ() field.
    • set

      public VkAabbPositionsKHR set(float minX, float minY, float minZ, float maxX, float maxY, float maxZ)
      Initializes this struct with the specified values.
    • set

      Copies the specified struct data to this struct.
      Parameters:
      src - the source struct
      Returns:
      this struct
    • malloc

      public static VkAabbPositionsKHR malloc()
      Returns a new VkAabbPositionsKHR instance allocated with memAlloc. The instance must be explicitly freed.
    • calloc

      public static VkAabbPositionsKHR calloc()
      Returns a new VkAabbPositionsKHR instance allocated with memCalloc. The instance must be explicitly freed.
    • create

      public static VkAabbPositionsKHR create()
      Returns a new VkAabbPositionsKHR instance allocated with BufferUtils.
    • create

      public static VkAabbPositionsKHR create(long address)
      Returns a new VkAabbPositionsKHR instance for the specified memory address.
    • createSafe

      public static @Nullable VkAabbPositionsKHR createSafe(long address)
      Like create, but returns null if address is NULL.
    • malloc

      public static VkAabbPositionsKHR.Buffer malloc(int capacity)
      Returns a new VkAabbPositionsKHR.Buffer instance allocated with memAlloc. The instance must be explicitly freed.
      Parameters:
      capacity - the buffer capacity
    • calloc

      public static VkAabbPositionsKHR.Buffer calloc(int capacity)
      Returns a new VkAabbPositionsKHR.Buffer instance allocated with memCalloc. The instance must be explicitly freed.
      Parameters:
      capacity - the buffer capacity
    • create

      public static VkAabbPositionsKHR.Buffer create(int capacity)
      Returns a new VkAabbPositionsKHR.Buffer instance allocated with BufferUtils.
      Parameters:
      capacity - the buffer capacity
    • create

      public static VkAabbPositionsKHR.Buffer create(long address, int capacity)
      Create a VkAabbPositionsKHR.Buffer instance at the specified memory.
      Parameters:
      address - the memory address
      capacity - the buffer capacity
    • createSafe

      public static @Nullable VkAabbPositionsKHR.Buffer createSafe(long address, int capacity)
      Like create, but returns null if address is NULL.
    • malloc

      public static VkAabbPositionsKHR malloc(org.lwjgl.system.MemoryStack stack)
      Returns a new VkAabbPositionsKHR instance allocated on the specified MemoryStack.
      Parameters:
      stack - the stack from which to allocate
    • calloc

      public static VkAabbPositionsKHR calloc(org.lwjgl.system.MemoryStack stack)
      Returns a new VkAabbPositionsKHR instance allocated on the specified MemoryStack and initializes all its bits to zero.
      Parameters:
      stack - the stack from which to allocate
    • malloc

      public static VkAabbPositionsKHR.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
      Returns a new VkAabbPositionsKHR.Buffer instance allocated on the specified MemoryStack.
      Parameters:
      capacity - the buffer capacity
      stack - the stack from which to allocate
    • calloc

      public static VkAabbPositionsKHR.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
      Returns a new VkAabbPositionsKHR.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.
      Parameters:
      capacity - the buffer capacity
      stack - the stack from which to allocate
    • nminX

      public static float nminX(long struct)
      Unsafe version of minX().
    • nminY

      public static float nminY(long struct)
      Unsafe version of minY().
    • nminZ

      public static float nminZ(long struct)
      Unsafe version of minZ().
    • nmaxX

      public static float nmaxX(long struct)
      Unsafe version of maxX().
    • nmaxY

      public static float nmaxY(long struct)
      Unsafe version of maxY().
    • nmaxZ

      public static float nmaxZ(long struct)
      Unsafe version of maxZ().
    • nminX

      public static void nminX(long struct, float value)
      Unsafe version of minX.
    • nminY

      public static void nminY(long struct, float value)
      Unsafe version of minY.
    • nminZ

      public static void nminZ(long struct, float value)
      Unsafe version of minZ.
    • nmaxX

      public static void nmaxX(long struct, float value)
      Unsafe version of maxX.
    • nmaxY

      public static void nmaxY(long struct, float value)
      Unsafe version of maxY.
    • nmaxZ

      public static void nmaxZ(long struct, float value)
      Unsafe version of maxZ.