Class VkAabbPositionsKHR

  • All Implemented Interfaces:
    java.lang.AutoCloseable, org.lwjgl.system.NativeResource, org.lwjgl.system.Pointer
    Direct Known Subclasses:
    VkAabbPositionsNV

    public class VkAabbPositionsKHR
    extends org.lwjgl.system.Struct
    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();
     }
    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • MINX, MINY, MINZ, MAXX, MAXY, MAXZ

        The struct member offsets.
    • Constructor Detail

      • VkAabbPositionsKHR

        public VkAabbPositionsKHR​(java.nio.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 Detail

      • sizeof

        public int sizeof()
        Specified by:
        sizeof in class org.lwjgl.system.Struct
      • 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.
      • set

        public VkAabbPositionsKHR set​(float minX,
                                      float minY,
                                      float minZ,
                                      float maxX,
                                      float maxY,
                                      float maxZ)
        Initializes this struct with the specified values.
      • 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

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

        @Nullable
        public static 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:
        stack - the stack from which to allocate
        capacity - the buffer capacity
      • 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:
        stack - the stack from which to allocate
        capacity - the buffer capacity
      • 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.