Class IntersectionMaskCircle

  • All Implemented Interfaces:
    java.lang.AutoCloseable, org.lwjgl.system.NativeResource, org.lwjgl.system.Pointer

    public class IntersectionMaskCircle
    extends org.lwjgl.system.Struct
    implements org.lwjgl.system.NativeResource

    Layout

    
     struct IntersectionMaskCircle_t {
         float m_flCenterX;
         float m_flCenterY;
         float m_flRadius;
     }
    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • M_FLCENTERX, M_FLCENTERY, M_FLRADIUS

        The struct member offsets.
    • Constructor Detail

      • IntersectionMaskCircle

        public IntersectionMaskCircle​(java.nio.ByteBuffer container)
        Creates a IntersectionMaskCircle 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
      • m_flCenterX

        public float m_flCenterX()
        Returns the value of the m_flCenterX field.
      • m_flCenterY

        public float m_flCenterY()
        Returns the value of the m_flCenterY field.
      • m_flRadius

        public float m_flRadius()
        Returns the value of the m_flRadius field.
      • m_flCenterX

        public IntersectionMaskCircle m_flCenterX​(float value)
        Sets the specified value to the m_flCenterX field.
      • m_flCenterY

        public IntersectionMaskCircle m_flCenterY​(float value)
        Sets the specified value to the m_flCenterY field.
      • m_flRadius

        public IntersectionMaskCircle m_flRadius​(float value)
        Sets the specified value to the m_flRadius field.
      • set

        public IntersectionMaskCircle set​(float m_flCenterX,
                                          float m_flCenterY,
                                          float m_flRadius)
        Initializes this struct with the specified values.
      • malloc

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

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

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

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

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

        public static IntersectionMaskCircle mallocStack()
        Returns a new IntersectionMaskCircle instance allocated on the thread-local MemoryStack.
      • callocStack

        public static IntersectionMaskCircle callocStack()
        Returns a new IntersectionMaskCircle instance allocated on the thread-local MemoryStack and initializes all its bits to zero.
      • mallocStack

        public static IntersectionMaskCircle mallocStack​(org.lwjgl.system.MemoryStack stack)
        Returns a new IntersectionMaskCircle instance allocated on the specified MemoryStack.
        Parameters:
        stack - the stack from which to allocate
      • callocStack

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

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

        public static IntersectionMaskCircle.Buffer callocStack​(int capacity,
                                                                org.lwjgl.system.MemoryStack stack)
        Returns a new IntersectionMaskCircle.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
      • nm_flCenterX

        public static float nm_flCenterX​(long struct)
        Unsafe version of m_flCenterX().
      • nm_flCenterY

        public static float nm_flCenterY​(long struct)
        Unsafe version of m_flCenterY().
      • nm_flRadius

        public static float nm_flRadius​(long struct)
        Unsafe version of m_flRadius().
      • nm_flCenterX

        public static void nm_flCenterX​(long struct,
                                        float value)
        Unsafe version of m_flCenterX.
      • nm_flCenterY

        public static void nm_flCenterY​(long struct,
                                        float value)
        Unsafe version of m_flCenterY.
      • nm_flRadius

        public static void nm_flRadius​(long struct,
                                       float value)
        Unsafe version of m_flRadius.