Class AIMatrix3x3

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

    public class AIMatrix3x3
    extends org.lwjgl.system.Struct
    implements org.lwjgl.system.NativeResource
    Represents a row-major 3x3 matrix.

    Layout

    
     struct aiMatrix3x3 {
         float a1;
         float a2;
         float a3;
         float b1;
         float b2;
         float b3;
         float c1;
         float c2;
         float c3;
     }
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  AIMatrix3x3.Buffer
      An array of AIMatrix3x3 structs.
      • Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer

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

      Fields 
      Modifier and Type Field Description
      static int A1
      A2
      A3
      The struct member offsets.
      static int ALIGNOF
      The struct alignment in bytes.
      static int B1
      B2
      B3
      C1
      C2
      C3
      The struct member offsets.
      static int SIZEOF
      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
      AIMatrix3x3​(java.nio.ByteBuffer container)
      Creates a AIMatrix3x3 instance at the current position of the specified ByteBuffer container.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      float a1()
      Returns the value of the a1 field.
      AIMatrix3x3 a1​(float value)
      Sets the specified value to the a1 field.
      float a2()
      Returns the value of the a2 field.
      AIMatrix3x3 a2​(float value)
      Sets the specified value to the a2 field.
      float a3()
      Returns the value of the a3 field.
      AIMatrix3x3 a3​(float value)
      Sets the specified value to the a3 field.
      float b1()
      Returns the value of the b1 field.
      AIMatrix3x3 b1​(float value)
      Sets the specified value to the b1 field.
      float b2()
      Returns the value of the b2 field.
      AIMatrix3x3 b2​(float value)
      Sets the specified value to the b2 field.
      float b3()
      Returns the value of the b3 field.
      AIMatrix3x3 b3​(float value)
      Sets the specified value to the b3 field.
      float c1()
      Returns the value of the c1 field.
      AIMatrix3x3 c1​(float value)
      Sets the specified value to the c1 field.
      float c2()
      Returns the value of the c2 field.
      AIMatrix3x3 c2​(float value)
      Sets the specified value to the c2 field.
      float c3()
      Returns the value of the c3 field.
      AIMatrix3x3 c3​(float value)
      Sets the specified value to the c3 field.
      static AIMatrix3x3 calloc()
      Returns a new AIMatrix3x3 instance allocated with memCalloc.
      static AIMatrix3x3.Buffer calloc​(int capacity)
      Returns a new AIMatrix3x3.Buffer instance allocated with memCalloc.
      static AIMatrix3x3 callocStack()
      Returns a new AIMatrix3x3 instance allocated on the thread-local MemoryStack and initializes all its bits to zero.
      static AIMatrix3x3.Buffer callocStack​(int capacity)
      Returns a new AIMatrix3x3.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.
      static AIMatrix3x3.Buffer callocStack​(int capacity, org.lwjgl.system.MemoryStack stack)
      Returns a new AIMatrix3x3.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.
      static AIMatrix3x3 callocStack​(org.lwjgl.system.MemoryStack stack)
      Returns a new AIMatrix3x3 instance allocated on the specified MemoryStack and initializes all its bits to zero.
      static AIMatrix3x3 create()
      Returns a new AIMatrix3x3 instance allocated with BufferUtils.
      static AIMatrix3x3.Buffer create​(int capacity)
      Returns a new AIMatrix3x3.Buffer instance allocated with BufferUtils.
      static AIMatrix3x3 create​(long address)
      Returns a new AIMatrix3x3 instance for the specified memory address.
      static AIMatrix3x3.Buffer create​(long address, int capacity)
      Create a AIMatrix3x3.Buffer instance at the specified memory.
      static AIMatrix3x3 createSafe​(long address)
      Like create, but returns null if address is NULL.
      static AIMatrix3x3.Buffer createSafe​(long address, int capacity)
      Like create, but returns null if address is NULL.
      static AIMatrix3x3 malloc()
      Returns a new AIMatrix3x3 instance allocated with memAlloc.
      static AIMatrix3x3.Buffer malloc​(int capacity)
      Returns a new AIMatrix3x3.Buffer instance allocated with memAlloc.
      static AIMatrix3x3 mallocStack()
      Returns a new AIMatrix3x3 instance allocated on the thread-local MemoryStack.
      static AIMatrix3x3.Buffer mallocStack​(int capacity)
      Returns a new AIMatrix3x3.Buffer instance allocated on the thread-local MemoryStack.
      static AIMatrix3x3.Buffer mallocStack​(int capacity, org.lwjgl.system.MemoryStack stack)
      Returns a new AIMatrix3x3.Buffer instance allocated on the specified MemoryStack.
      static AIMatrix3x3 mallocStack​(org.lwjgl.system.MemoryStack stack)
      Returns a new AIMatrix3x3 instance allocated on the specified MemoryStack.
      static float na1​(long struct)
      Unsafe version of a1().
      static void na1​(long struct, float value)
      Unsafe version of a1.
      static float na2​(long struct)
      Unsafe version of a2().
      static void na2​(long struct, float value)
      Unsafe version of a2.
      static float na3​(long struct)
      Unsafe version of a3().
      static void na3​(long struct, float value)
      Unsafe version of a3.
      static float nb1​(long struct)
      Unsafe version of b1().
      static void nb1​(long struct, float value)
      Unsafe version of b1.
      static float nb2​(long struct)
      Unsafe version of b2().
      static void nb2​(long struct, float value)
      Unsafe version of b2.
      static float nb3​(long struct)
      Unsafe version of b3().
      static void nb3​(long struct, float value)
      Unsafe version of b3.
      static float nc1​(long struct)
      Unsafe version of c1().
      static void nc1​(long struct, float value)
      Unsafe version of c1.
      static float nc2​(long struct)
      Unsafe version of c2().
      static void nc2​(long struct, float value)
      Unsafe version of c2.
      static float nc3​(long struct)
      Unsafe version of c3().
      static void nc3​(long struct, float value)
      Unsafe version of c3.
      AIMatrix3x3 set​(float a1, float a2, float a3, float b1, float b2, float b3, float c1, float c2, float c3)
      Initializes this struct with the specified values.
      AIMatrix3x3 set​(AIMatrix3x3 src)
      Copies the specified struct data to this struct.
      int sizeof()  
      • Methods inherited from interface org.lwjgl.system.NativeResource

        close, free
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
      • Methods inherited from class org.lwjgl.system.Pointer.Default

        address, equals, hashCode, toString
      • Methods inherited from class org.lwjgl.system.Struct

        clear, free, isNull
    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • A1, A2, A3, B1, B2, B3, C1, C2, C3

        The struct member offsets.
    • Constructor Detail

      • AIMatrix3x3

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

        public float a1()
        Returns the value of the a1 field.
      • a2

        public float a2()
        Returns the value of the a2 field.
      • a3

        public float a3()
        Returns the value of the a3 field.
      • b1

        public float b1()
        Returns the value of the b1 field.
      • b2

        public float b2()
        Returns the value of the b2 field.
      • b3

        public float b3()
        Returns the value of the b3 field.
      • c1

        public float c1()
        Returns the value of the c1 field.
      • c2

        public float c2()
        Returns the value of the c2 field.
      • c3

        public float c3()
        Returns the value of the c3 field.
      • a1

        public AIMatrix3x3 a1​(float value)
        Sets the specified value to the a1 field.
      • a2

        public AIMatrix3x3 a2​(float value)
        Sets the specified value to the a2 field.
      • a3

        public AIMatrix3x3 a3​(float value)
        Sets the specified value to the a3 field.
      • b1

        public AIMatrix3x3 b1​(float value)
        Sets the specified value to the b1 field.
      • b2

        public AIMatrix3x3 b2​(float value)
        Sets the specified value to the b2 field.
      • b3

        public AIMatrix3x3 b3​(float value)
        Sets the specified value to the b3 field.
      • c1

        public AIMatrix3x3 c1​(float value)
        Sets the specified value to the c1 field.
      • c2

        public AIMatrix3x3 c2​(float value)
        Sets the specified value to the c2 field.
      • c3

        public AIMatrix3x3 c3​(float value)
        Sets the specified value to the c3 field.
      • set

        public AIMatrix3x3 set​(float a1,
                               float a2,
                               float a3,
                               float b1,
                               float b2,
                               float b3,
                               float c1,
                               float c2,
                               float c3)
        Initializes this struct with the specified values.
      • set

        public AIMatrix3x3 set​(AIMatrix3x3 src)
        Copies the specified struct data to this struct.
        Parameters:
        src - the source struct
        Returns:
        this struct
      • malloc

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        public static AIMatrix3x3.Buffer mallocStack​(int capacity)
        Returns a new AIMatrix3x3.Buffer instance allocated on the thread-local MemoryStack.
        Parameters:
        capacity - the buffer capacity
      • callocStack

        public static AIMatrix3x3.Buffer callocStack​(int capacity)
        Returns a new AIMatrix3x3.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.
        Parameters:
        capacity - the buffer capacity
      • mallocStack

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

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

        public static float na1​(long struct)
        Unsafe version of a1().
      • na2

        public static float na2​(long struct)
        Unsafe version of a2().
      • na3

        public static float na3​(long struct)
        Unsafe version of a3().
      • nb1

        public static float nb1​(long struct)
        Unsafe version of b1().
      • nb2

        public static float nb2​(long struct)
        Unsafe version of b2().
      • nb3

        public static float nb3​(long struct)
        Unsafe version of b3().
      • nc1

        public static float nc1​(long struct)
        Unsafe version of c1().
      • nc2

        public static float nc2​(long struct)
        Unsafe version of c2().
      • nc3

        public static float nc3​(long struct)
        Unsafe version of c3().
      • na1

        public static void na1​(long struct,
                               float value)
        Unsafe version of a1.
      • na2

        public static void na2​(long struct,
                               float value)
        Unsafe version of a2.
      • na3

        public static void na3​(long struct,
                               float value)
        Unsafe version of a3.
      • nb1

        public static void nb1​(long struct,
                               float value)
        Unsafe version of b1.
      • nb2

        public static void nb2​(long struct,
                               float value)
        Unsafe version of b2.
      • nb3

        public static void nb3​(long struct,
                               float value)
        Unsafe version of b3.
      • nc1

        public static void nc1​(long struct,
                               float value)
        Unsafe version of c1.
      • nc2

        public static void nc2​(long struct,
                               float value)
        Unsafe version of c2.
      • nc3

        public static void nc3​(long struct,
                               float value)
        Unsafe version of c3.