Package apple.glkit.c

Class GLKit


  • public final class GLKit
    extends java.lang.Object
    • Method Detail

      • GLKVector3Make

        public static GLKVector3 GLKVector3Make​(float x,
                                                float y,
                                                float z)
      • GLKVector3AddScalar

        public static GLKVector3 GLKVector3AddScalar​(GLKVector3 vector,
                                                     float value)
      • GLKVector3SubtractScalar

        public static GLKVector3 GLKVector3SubtractScalar​(GLKVector3 vector,
                                                          float value)
      • GLKVector3MultiplyScalar

        public static GLKVector3 GLKVector3MultiplyScalar​(GLKVector3 vector,
                                                          float value)
      • GLKVector3DivideScalar

        public static GLKVector3 GLKVector3DivideScalar​(GLKVector3 vector,
                                                        float value)
      • GLKVector3Maximum

        public static GLKVector3 GLKVector3Maximum​(GLKVector3 vectorLeft,
                                                   GLKVector3 vectorRight)
        Returns a vector whose elements are the larger of the corresponding elements of the vector arguments.
      • GLKVector3Minimum

        public static GLKVector3 GLKVector3Minimum​(GLKVector3 vectorLeft,
                                                   GLKVector3 vectorRight)
        Returns a vector whose elements are the smaller of the corresponding elements of the vector arguments.
      • GLKVector3AllEqualToVector3

        public static boolean GLKVector3AllEqualToVector3​(GLKVector3 vectorLeft,
                                                          GLKVector3 vectorRight)
        Returns true if all of the first vector's elements are equal to all of the second vector's arguments.
      • GLKVector3AllEqualToScalar

        public static boolean GLKVector3AllEqualToScalar​(GLKVector3 vector,
                                                         float value)
        Returns true if all of the vector's elements are equal to the provided value.
      • GLKVector3AllGreaterThanVector3

        public static boolean GLKVector3AllGreaterThanVector3​(GLKVector3 vectorLeft,
                                                              GLKVector3 vectorRight)
        Returns true if all of the first vector's elements are greater than all of the second vector's arguments.
      • GLKVector3AllGreaterThanScalar

        public static boolean GLKVector3AllGreaterThanScalar​(GLKVector3 vector,
                                                             float value)
        Returns true if all of the vector's elements are greater than the provided value.
      • GLKVector3AllGreaterThanOrEqualToVector3

        public static boolean GLKVector3AllGreaterThanOrEqualToVector3​(GLKVector3 vectorLeft,
                                                                       GLKVector3 vectorRight)
        Returns true if all of the first vector's elements are greater than or equal to all of the second vector's arguments.
      • GLKVector3AllGreaterThanOrEqualToScalar

        public static boolean GLKVector3AllGreaterThanOrEqualToScalar​(GLKVector3 vector,
                                                                      float value)
        Returns true if all of the vector's elements are greater than or equal to the provided value.
      • GLKVector3DotProduct

        public static float GLKVector3DotProduct​(GLKVector3 vectorLeft,
                                                 GLKVector3 vectorRight)
      • GLKVector3Length

        public static float GLKVector3Length​(GLKVector3 vector)
      • GLKVector3Distance

        public static float GLKVector3Distance​(GLKVector3 vectorStart,
                                               GLKVector3 vectorEnd)
      • GLKVector3Project

        public static GLKVector3 GLKVector3Project​(GLKVector3 vectorToProject,
                                                   GLKVector3 projectionVector)
        Project the vector, vectorToProject, onto the vector, projectionVector.
      • GLKVector4Make

        public static GLKVector4 GLKVector4Make​(float x,
                                                float y,
                                                float z,
                                                float w)
      • GLKVector4MakeWithVector3

        public static GLKVector4 GLKVector4MakeWithVector3​(GLKVector3 vector,
                                                           float w)
      • GLKVector4AddScalar

        public static GLKVector4 GLKVector4AddScalar​(GLKVector4 vector,
                                                     float value)
      • GLKVector4SubtractScalar

        public static GLKVector4 GLKVector4SubtractScalar​(GLKVector4 vector,
                                                          float value)
      • GLKVector4MultiplyScalar

        public static GLKVector4 GLKVector4MultiplyScalar​(GLKVector4 vector,
                                                          float value)
      • GLKVector4DivideScalar

        public static GLKVector4 GLKVector4DivideScalar​(GLKVector4 vector,
                                                        float value)
      • GLKVector4Maximum

        public static GLKVector4 GLKVector4Maximum​(GLKVector4 vectorLeft,
                                                   GLKVector4 vectorRight)
        Returns a vector whose elements are the larger of the corresponding elements of the vector arguments.
      • GLKVector4Minimum

        public static GLKVector4 GLKVector4Minimum​(GLKVector4 vectorLeft,
                                                   GLKVector4 vectorRight)
        Returns a vector whose elements are the smaller of the corresponding elements of the vector arguments.
      • GLKVector4AllEqualToVector4

        public static boolean GLKVector4AllEqualToVector4​(GLKVector4 vectorLeft,
                                                          GLKVector4 vectorRight)
        Returns true if all of the first vector's elements are equal to all of the second vector's arguments.
      • GLKVector4AllEqualToScalar

        public static boolean GLKVector4AllEqualToScalar​(GLKVector4 vector,
                                                         float value)
        Returns true if all of the vector's elements are equal to the provided value.
      • GLKVector4AllGreaterThanVector4

        public static boolean GLKVector4AllGreaterThanVector4​(GLKVector4 vectorLeft,
                                                              GLKVector4 vectorRight)
        Returns true if all of the first vector's elements are greater than all of the second vector's arguments.
      • GLKVector4AllGreaterThanScalar

        public static boolean GLKVector4AllGreaterThanScalar​(GLKVector4 vector,
                                                             float value)
        Returns true if all of the vector's elements are greater than the provided value.
      • GLKVector4AllGreaterThanOrEqualToVector4

        public static boolean GLKVector4AllGreaterThanOrEqualToVector4​(GLKVector4 vectorLeft,
                                                                       GLKVector4 vectorRight)
        Returns true if all of the first vector's elements are greater than or equal to all of the second vector's arguments.
      • GLKVector4AllGreaterThanOrEqualToScalar

        public static boolean GLKVector4AllGreaterThanOrEqualToScalar​(GLKVector4 vector,
                                                                      float value)
        Returns true if all of the vector's elements are greater than or equal to the provided value.
      • GLKVector4DotProduct

        public static float GLKVector4DotProduct​(GLKVector4 vectorLeft,
                                                 GLKVector4 vectorRight)
      • GLKVector4Length

        public static float GLKVector4Length​(GLKVector4 vector)
      • GLKVector4Distance

        public static float GLKVector4Distance​(GLKVector4 vectorStart,
                                               GLKVector4 vectorEnd)
      • GLKVector4CrossProduct

        public static GLKVector4 GLKVector4CrossProduct​(GLKVector4 vectorLeft,
                                                        GLKVector4 vectorRight)
        Performs a 3D cross product. The last component of the resulting cross product will be zeroed out.
      • GLKVector4Project

        public static GLKVector4 GLKVector4Project​(GLKVector4 vectorToProject,
                                                   GLKVector4 projectionVector)
        Project the vector, vectorToProject, onto the vector, projectionVector.
      • GLKQuaternionMake

        public static GLKQuaternion GLKQuaternionMake​(float x,
                                                      float y,
                                                      float z,
                                                      float w)
        x, y, and z represent the imaginary values.
      • GLKQuaternionMakeWithVector3

        public static GLKQuaternion GLKQuaternionMakeWithVector3​(GLKVector3 vector,
                                                                 float scalar)
        vector represents the imaginary values.
      • GLKQuaternionMakeWithAngleAndAxis

        public static GLKQuaternion GLKQuaternionMakeWithAngleAndAxis​(float radians,
                                                                      float x,
                                                                      float y,
                                                                      float z)
        Assumes the axis is already normalized.
      • GLKQuaternionMakeWithAngleAndVector3Axis

        public static GLKQuaternion GLKQuaternionMakeWithAngleAndVector3Axis​(float radians,
                                                                             GLKVector3 axisVector)
        Assumes the axis is already normalized.
      • GLKQuaternionAngle

        public static float GLKQuaternionAngle​(GLKQuaternion quaternion)
        Calculate and return the angle component of the angle and axis form.
      • GLKQuaternionAxis

        public static GLKVector3 GLKQuaternionAxis​(GLKQuaternion quaternion)
        Calculate and return the axis component of the angle and axis form.
      • GLKQuaternionLength

        public static float GLKQuaternionLength​(GLKQuaternion quaternion)
      • GLKQuaternionRotateVector3Array

        public static void GLKQuaternionRotateVector3Array​(GLKQuaternion quaternion,
                                                           GLKVector3 vectors,
                                                           long vectorCount)
      • GLKQuaternionRotateVector4

        public static GLKVector4 GLKQuaternionRotateVector4​(GLKQuaternion quaternion,
                                                            GLKVector4 vector)
        The fourth component of the vector is ignored when calculating the rotation.
      • GLKQuaternionRotateVector4Array

        public static void GLKQuaternionRotateVector4Array​(GLKQuaternion quaternion,
                                                           GLKVector4 vectors,
                                                           long vectorCount)
      • GLKMatrix3Make

        public static GLKMatrix3 GLKMatrix3Make​(float m00,
                                                float m01,
                                                float m02,
                                                float m10,
                                                float m11,
                                                float m12,
                                                float m20,
                                                float m21,
                                                float m22)
      • GLKMatrix3MakeAndTranspose

        public static GLKMatrix3 GLKMatrix3MakeAndTranspose​(float m00,
                                                            float m01,
                                                            float m02,
                                                            float m10,
                                                            float m11,
                                                            float m12,
                                                            float m20,
                                                            float m21,
                                                            float m22)
      • GLKMatrix3MakeWithQuaternion

        public static GLKMatrix3 GLKMatrix3MakeWithQuaternion​(GLKQuaternion quaternion)
        The quaternion will be normalized before conversion.
      • GLKMatrix3MakeScale

        public static GLKMatrix3 GLKMatrix3MakeScale​(float sx,
                                                     float sy,
                                                     float sz)
      • GLKMatrix3MakeRotation

        public static GLKMatrix3 GLKMatrix3MakeRotation​(float radians,
                                                        float x,
                                                        float y,
                                                        float z)
      • GLKMatrix3MakeXRotation

        public static GLKMatrix3 GLKMatrix3MakeXRotation​(float radians)
      • GLKMatrix3MakeYRotation

        public static GLKMatrix3 GLKMatrix3MakeYRotation​(float radians)
      • GLKMatrix3MakeZRotation

        public static GLKMatrix3 GLKMatrix3MakeZRotation​(float radians)
      • GLKMatrix3GetMatrix2

        public static GLKMatrix2 GLKMatrix3GetMatrix2​(GLKMatrix3 matrix)
        Returns the upper left 2x2 portion of the 3x3 matrix.
      • GLKMatrix3GetColumn

        public static GLKVector3 GLKMatrix3GetColumn​(GLKMatrix3 matrix,
                                                     int column)
      • GLKMatrix3Invert

        public static GLKMatrix3 GLKMatrix3Invert​(GLKMatrix3 matrix,
                                                  org.moe.natj.general.ptr.BoolPtr isInvertible)
      • GLKMatrix3InvertAndTranspose

        public static GLKMatrix3 GLKMatrix3InvertAndTranspose​(GLKMatrix3 matrix,
                                                              org.moe.natj.general.ptr.BoolPtr isInvertible)
      • GLKMatrix3Scale

        public static GLKMatrix3 GLKMatrix3Scale​(GLKMatrix3 matrix,
                                                 float sx,
                                                 float sy,
                                                 float sz)
      • GLKMatrix3ScaleWithVector4

        public static GLKMatrix3 GLKMatrix3ScaleWithVector4​(GLKMatrix3 matrix,
                                                            GLKVector4 scaleVector)
        The last component of the GLKVector4, scaleVector, is ignored.
      • GLKMatrix3Rotate

        public static GLKMatrix3 GLKMatrix3Rotate​(GLKMatrix3 matrix,
                                                  float radians,
                                                  float x,
                                                  float y,
                                                  float z)
      • GLKMatrix3RotateWithVector4

        public static GLKMatrix3 GLKMatrix3RotateWithVector4​(GLKMatrix3 matrix,
                                                             float radians,
                                                             GLKVector4 axisVector)
        The last component of the GLKVector4, axisVector, is ignored.
      • GLKMatrix3RotateX

        public static GLKMatrix3 GLKMatrix3RotateX​(GLKMatrix3 matrix,
                                                   float radians)
      • GLKMatrix3RotateY

        public static GLKMatrix3 GLKMatrix3RotateY​(GLKMatrix3 matrix,
                                                   float radians)
      • GLKMatrix3RotateZ

        public static GLKMatrix3 GLKMatrix3RotateZ​(GLKMatrix3 matrix,
                                                   float radians)
      • GLKMatrix3MultiplyVector3Array

        public static void GLKMatrix3MultiplyVector3Array​(GLKMatrix3 matrix,
                                                          GLKVector3 vectors,
                                                          long vectorCount)
      • GLKMatrix4Make

        public static GLKMatrix4 GLKMatrix4Make​(float m00,
                                                float m01,
                                                float m02,
                                                float m03,
                                                float m10,
                                                float m11,
                                                float m12,
                                                float m13,
                                                float m20,
                                                float m21,
                                                float m22,
                                                float m23,
                                                float m30,
                                                float m31,
                                                float m32,
                                                float m33)
        m30, m31, and m32 correspond to the translation values tx, ty, tz, respectively.
      • GLKMatrix4MakeAndTranspose

        public static GLKMatrix4 GLKMatrix4MakeAndTranspose​(float m00,
                                                            float m01,
                                                            float m02,
                                                            float m03,
                                                            float m10,
                                                            float m11,
                                                            float m12,
                                                            float m13,
                                                            float m20,
                                                            float m21,
                                                            float m22,
                                                            float m23,
                                                            float m30,
                                                            float m31,
                                                            float m32,
                                                            float m33)
        m03, m13, and m23 correspond to the translation values tx, ty, tz, respectively.
      • GLKMatrix4MakeWithRows

        public static GLKMatrix4 GLKMatrix4MakeWithRows​(GLKVector4 row0,
                                                        GLKVector4 row1,
                                                        GLKVector4 row2,
                                                        GLKVector4 row3)
        row0, row1, and row2's last component should correspond to the translation values tx, ty, and tz, respectively.
      • GLKMatrix4MakeWithColumns

        public static GLKMatrix4 GLKMatrix4MakeWithColumns​(GLKVector4 column0,
                                                           GLKVector4 column1,
                                                           GLKVector4 column2,
                                                           GLKVector4 column3)
        column3's first three components should correspond to the translation values tx, ty, and tz.
      • GLKMatrix4MakeWithQuaternion

        public static GLKMatrix4 GLKMatrix4MakeWithQuaternion​(GLKQuaternion quaternion)
        The quaternion will be normalized before conversion.
      • GLKMatrix4MakeTranslation

        public static GLKMatrix4 GLKMatrix4MakeTranslation​(float tx,
                                                           float ty,
                                                           float tz)
      • GLKMatrix4MakeScale

        public static GLKMatrix4 GLKMatrix4MakeScale​(float sx,
                                                     float sy,
                                                     float sz)
      • GLKMatrix4MakeRotation

        public static GLKMatrix4 GLKMatrix4MakeRotation​(float radians,
                                                        float x,
                                                        float y,
                                                        float z)
      • GLKMatrix4MakeXRotation

        public static GLKMatrix4 GLKMatrix4MakeXRotation​(float radians)
      • GLKMatrix4MakeYRotation

        public static GLKMatrix4 GLKMatrix4MakeYRotation​(float radians)
      • GLKMatrix4MakeZRotation

        public static GLKMatrix4 GLKMatrix4MakeZRotation​(float radians)
      • GLKMatrix4MakePerspective

        public static GLKMatrix4 GLKMatrix4MakePerspective​(float fovyRadians,
                                                           float aspect,
                                                           float nearZ,
                                                           float farZ)
        Equivalent to gluPerspective.
      • GLKMatrix4MakeFrustum

        public static GLKMatrix4 GLKMatrix4MakeFrustum​(float left,
                                                       float right,
                                                       float bottom,
                                                       float top,
                                                       float nearZ,
                                                       float farZ)
        Equivalent to glFrustum.
      • GLKMatrix4MakeOrtho

        public static GLKMatrix4 GLKMatrix4MakeOrtho​(float left,
                                                     float right,
                                                     float bottom,
                                                     float top,
                                                     float nearZ,
                                                     float farZ)
        Equivalent to glOrtho.
      • GLKMatrix4MakeLookAt

        public static GLKMatrix4 GLKMatrix4MakeLookAt​(float eyeX,
                                                      float eyeY,
                                                      float eyeZ,
                                                      float centerX,
                                                      float centerY,
                                                      float centerZ,
                                                      float upX,
                                                      float upY,
                                                      float upZ)
        Equivalent to gluLookAt.
      • GLKMatrix4GetMatrix3

        public static GLKMatrix3 GLKMatrix4GetMatrix3​(GLKMatrix4 matrix)
        Returns the upper left 3x3 portion of the 4x4 matrix.
      • GLKMatrix4GetMatrix2

        public static GLKMatrix2 GLKMatrix4GetMatrix2​(GLKMatrix4 matrix)
        Returns the upper left 2x2 portion of the 4x4 matrix.
      • GLKMatrix4GetRow

        public static GLKVector4 GLKMatrix4GetRow​(GLKMatrix4 matrix,
                                                  int row)
        GLKMatrix4GetRow returns vectors for rows 0, 1, and 2 whose last component will be the translation value tx, ty, and tz, respectively. Valid row values range from 0 to 3, inclusive.
      • GLKMatrix4GetColumn

        public static GLKVector4 GLKMatrix4GetColumn​(GLKMatrix4 matrix,
                                                     int column)
        GLKMatrix4GetColumn returns a vector for column 3 whose first three components will be the translation values tx, ty, and tz. Valid column values range from 0 to 3, inclusive.
      • GLKMatrix4SetRow

        public static GLKMatrix4 GLKMatrix4SetRow​(GLKMatrix4 matrix,
                                                  int row,
                                                  GLKVector4 vector)
        GLKMatrix4SetRow expects that the vector for row 0, 1, and 2 will have a translation value as its last component. Valid row values range from 0 to 3, inclusive.
      • GLKMatrix4SetColumn

        public static GLKMatrix4 GLKMatrix4SetColumn​(GLKMatrix4 matrix,
                                                     int column,
                                                     GLKVector4 vector)
        GLKMatrix4SetColumn expects that the vector for column 3 will contain the translation values tx, ty, and tz as its first three components, respectively. Valid column values range from 0 to 3, inclusive.
      • GLKMatrix4Invert

        public static GLKMatrix4 GLKMatrix4Invert​(GLKMatrix4 matrix,
                                                  org.moe.natj.general.ptr.BoolPtr isInvertible)
      • GLKMatrix4InvertAndTranspose

        public static GLKMatrix4 GLKMatrix4InvertAndTranspose​(GLKMatrix4 matrix,
                                                              org.moe.natj.general.ptr.BoolPtr isInvertible)
      • GLKMatrix4Translate

        public static GLKMatrix4 GLKMatrix4Translate​(GLKMatrix4 matrix,
                                                     float tx,
                                                     float ty,
                                                     float tz)
      • GLKMatrix4TranslateWithVector4

        public static GLKMatrix4 GLKMatrix4TranslateWithVector4​(GLKMatrix4 matrix,
                                                                GLKVector4 translationVector)
        The last component of the GLKVector4, translationVector, is ignored.
      • GLKMatrix4Scale

        public static GLKMatrix4 GLKMatrix4Scale​(GLKMatrix4 matrix,
                                                 float sx,
                                                 float sy,
                                                 float sz)
      • GLKMatrix4ScaleWithVector4

        public static GLKMatrix4 GLKMatrix4ScaleWithVector4​(GLKMatrix4 matrix,
                                                            GLKVector4 scaleVector)
        The last component of the GLKVector4, scaleVector, is ignored.
      • GLKMatrix4Rotate

        public static GLKMatrix4 GLKMatrix4Rotate​(GLKMatrix4 matrix,
                                                  float radians,
                                                  float x,
                                                  float y,
                                                  float z)
      • GLKMatrix4RotateWithVector4

        public static GLKMatrix4 GLKMatrix4RotateWithVector4​(GLKMatrix4 matrix,
                                                             float radians,
                                                             GLKVector4 axisVector)
        The last component of the GLKVector4, axisVector, is ignored.
      • GLKMatrix4RotateX

        public static GLKMatrix4 GLKMatrix4RotateX​(GLKMatrix4 matrix,
                                                   float radians)
      • GLKMatrix4RotateY

        public static GLKMatrix4 GLKMatrix4RotateY​(GLKMatrix4 matrix,
                                                   float radians)
      • GLKMatrix4RotateZ

        public static GLKMatrix4 GLKMatrix4RotateZ​(GLKMatrix4 matrix,
                                                   float radians)
      • GLKMatrix4MultiplyVector3

        public static GLKVector3 GLKMatrix4MultiplyVector3​(GLKMatrix4 matrixLeft,
                                                           GLKVector3 vectorRight)
        Assumes 0 in the w component.
      • GLKMatrix4MultiplyVector3WithTranslation

        public static GLKVector3 GLKMatrix4MultiplyVector3WithTranslation​(GLKMatrix4 matrixLeft,
                                                                          GLKVector3 vectorRight)
        Assumes 1 in the w component.
      • GLKMatrix4MultiplyAndProjectVector3

        public static GLKVector3 GLKMatrix4MultiplyAndProjectVector3​(GLKMatrix4 matrixLeft,
                                                                     GLKVector3 vectorRight)
        Assumes 1 in the w component and divides the resulting vector by w before returning.
      • GLKMatrix4MultiplyVector3Array

        public static void GLKMatrix4MultiplyVector3Array​(GLKMatrix4 matrix,
                                                          GLKVector3 vectors,
                                                          long vectorCount)
        Assumes 0 in the w component.
      • GLKMatrix4MultiplyVector3ArrayWithTranslation

        public static void GLKMatrix4MultiplyVector3ArrayWithTranslation​(GLKMatrix4 matrix,
                                                                         GLKVector3 vectors,
                                                                         long vectorCount)
        Assumes 1 in the w component.
      • GLKMatrix4MultiplyAndProjectVector3Array

        public static void GLKMatrix4MultiplyAndProjectVector3Array​(GLKMatrix4 matrix,
                                                                    GLKVector3 vectors,
                                                                    long vectorCount)
        Assumes 1 in the w component and divides the resulting vector by w before returning.
      • GLKMatrix4MultiplyVector4Array

        public static void GLKMatrix4MultiplyVector4Array​(GLKMatrix4 matrix,
                                                          GLKVector4 vectors,
                                                          long vectorCount)
      • GLKVector2Make

        public static GLKVector2 GLKVector2Make​(float x,
                                                float y)
      • GLKVector2AddScalar

        public static GLKVector2 GLKVector2AddScalar​(GLKVector2 vector,
                                                     float value)
      • GLKVector2SubtractScalar

        public static GLKVector2 GLKVector2SubtractScalar​(GLKVector2 vector,
                                                          float value)
      • GLKVector2MultiplyScalar

        public static GLKVector2 GLKVector2MultiplyScalar​(GLKVector2 vector,
                                                          float value)
      • GLKVector2DivideScalar

        public static GLKVector2 GLKVector2DivideScalar​(GLKVector2 vector,
                                                        float value)
      • GLKVector2Maximum

        public static GLKVector2 GLKVector2Maximum​(GLKVector2 vectorLeft,
                                                   GLKVector2 vectorRight)
        Returns a vector whose elements are the larger of the corresponding elements of the vector arguments.
      • GLKVector2Minimum

        public static GLKVector2 GLKVector2Minimum​(GLKVector2 vectorLeft,
                                                   GLKVector2 vectorRight)
        Returns a vector whose elements are the smaller of the corresponding elements of the vector arguments.
      • GLKVector2AllEqualToVector2

        public static boolean GLKVector2AllEqualToVector2​(GLKVector2 vectorLeft,
                                                          GLKVector2 vectorRight)
        Returns true if all of the first vector's elements are equal to all of the second vector's arguments.
      • GLKVector2AllEqualToScalar

        public static boolean GLKVector2AllEqualToScalar​(GLKVector2 vector,
                                                         float value)
        Returns true if all of the vector's elements are equal to the provided value.
      • GLKVector2AllGreaterThanVector2

        public static boolean GLKVector2AllGreaterThanVector2​(GLKVector2 vectorLeft,
                                                              GLKVector2 vectorRight)
        Returns true if all of the first vector's elements are greater than all of the second vector's arguments.
      • GLKVector2AllGreaterThanScalar

        public static boolean GLKVector2AllGreaterThanScalar​(GLKVector2 vector,
                                                             float value)
        Returns true if all of the vector's elements are greater than the provided value.
      • GLKVector2AllGreaterThanOrEqualToVector2

        public static boolean GLKVector2AllGreaterThanOrEqualToVector2​(GLKVector2 vectorLeft,
                                                                       GLKVector2 vectorRight)
        Returns true if all of the first vector's elements are greater than or equal to all of the second vector's arguments.
      • GLKVector2AllGreaterThanOrEqualToScalar

        public static boolean GLKVector2AllGreaterThanOrEqualToScalar​(GLKVector2 vector,
                                                                      float value)
        Returns true if all of the vector's elements are greater than or equal to the provided value.
      • GLKVector2DotProduct

        public static float GLKVector2DotProduct​(GLKVector2 vectorLeft,
                                                 GLKVector2 vectorRight)
      • GLKVector2Length

        public static float GLKVector2Length​(GLKVector2 vector)
      • GLKVector2Distance

        public static float GLKVector2Distance​(GLKVector2 vectorStart,
                                               GLKVector2 vectorEnd)
      • GLKVector2Project

        public static GLKVector2 GLKVector2Project​(GLKVector2 vectorToProject,
                                                   GLKVector2 projectionVector)
        Project the vector, vectorToProject, onto the vector, projectionVector.
      • GLKMatrixStackCreate

        public static GLKMatrixStackRef GLKMatrixStackCreate​(CFAllocatorRef alloc)
        CFType GLKMatrixStack creation routine. Pass NULL or kCFAllocatorDefault to use the current default allocator. A newly created stack is initialized with the identity matrix.
      • GLKMatrixStackGetTypeID

        public static long GLKMatrixStackGetTypeID()
        Returns the type identifier for the GLKMatrixStack opaque type.
      • GLKMatrixStackPush

        public static void GLKMatrixStackPush​(GLKMatrixStackRef stack)
        Pushes all of the matrices down one level and copies the topmost matrix.
      • GLKMatrixStackPop

        public static void GLKMatrixStackPop​(GLKMatrixStackRef stack)
        Pops the topmost matrix off of the stack, moving the rest of the matrices up one level.
      • GLKMatrixStackSize

        public static int GLKMatrixStackSize​(GLKMatrixStackRef stack)
        Returns the number of matrices currently on the stack.
      • GLKMatrixStackLoadMatrix4

        public static void GLKMatrixStackLoadMatrix4​(GLKMatrixStackRef stack,
                                                     GLKMatrix4 matrix)
        Replaces the topmost matrix with the matrix provided.
      • GLKMatrixStackGetMatrix4

        public static GLKMatrix4 GLKMatrixStackGetMatrix4​(GLKMatrixStackRef stack)
        Returns the 4x4 matrix currently residing on top of the stack.
      • GLKMatrixStackGetMatrix3

        public static GLKMatrix3 GLKMatrixStackGetMatrix3​(GLKMatrixStackRef stack)
        Returns the upper left 3x3 portion of the matrix currently residing on top of the stack.
      • GLKMatrixStackGetMatrix2

        public static GLKMatrix2 GLKMatrixStackGetMatrix2​(GLKMatrixStackRef stack)
        Returns the upper left 2x2 portion of the matrix currently residing on top of the stack.
      • GLKMatrixStackGetMatrix4Inverse

        public static GLKMatrix4 GLKMatrixStackGetMatrix4Inverse​(GLKMatrixStackRef stack)
        Calculate and return the inverse matrix from the matrix currently residing on top of stack.
      • GLKMatrixStackGetMatrix4InverseTranspose

        public static GLKMatrix4 GLKMatrixStackGetMatrix4InverseTranspose​(GLKMatrixStackRef stack)
        Calculate and return the inverse transpose matrix from the matrix currently residing on top of stack.
      • GLKMatrixStackGetMatrix3Inverse

        public static GLKMatrix3 GLKMatrixStackGetMatrix3Inverse​(GLKMatrixStackRef stack)
        Calculate and return the upper left 3x3 inverse matrix from the matrix currently residing on top of stack.
      • GLKMatrixStackGetMatrix3InverseTranspose

        public static GLKMatrix3 GLKMatrixStackGetMatrix3InverseTranspose​(GLKMatrixStackRef stack)
        Calculate and return the upper left 3x3 inverse transpose matrix from the matrix currently residing on top of stack.
      • GLKMatrixStackMultiplyMatrix4

        public static void GLKMatrixStackMultiplyMatrix4​(GLKMatrixStackRef stack,
                                                         GLKMatrix4 matrix)
        Multiply the topmost matrix with the matrix provided.
      • GLKMatrixStackMultiplyMatrixStack

        public static void GLKMatrixStackMultiplyMatrixStack​(GLKMatrixStackRef stackLeft,
                                                             GLKMatrixStackRef stackRight)
        Multiply the topmost matrix of the stackLeft with the topmost matrix of stackRight and store in stackLeft.
      • GLKMatrixStackTranslate

        public static void GLKMatrixStackTranslate​(GLKMatrixStackRef stack,
                                                   float tx,
                                                   float ty,
                                                   float tz)
        Translate the topmost matrix.
      • GLKMatrixStackTranslateWithVector3

        public static void GLKMatrixStackTranslateWithVector3​(GLKMatrixStackRef stack,
                                                              GLKVector3 translationVector)
      • GLKMatrixStackTranslateWithVector4

        public static void GLKMatrixStackTranslateWithVector4​(GLKMatrixStackRef stack,
                                                              GLKVector4 translationVector)
      • GLKMatrixStackScale

        public static void GLKMatrixStackScale​(GLKMatrixStackRef stack,
                                               float sx,
                                               float sy,
                                               float sz)
        Scale the topmost matrix.
      • GLKMatrixStackScaleWithVector3

        public static void GLKMatrixStackScaleWithVector3​(GLKMatrixStackRef stack,
                                                          GLKVector3 scaleVector)
      • GLKMatrixStackScaleWithVector4

        public static void GLKMatrixStackScaleWithVector4​(GLKMatrixStackRef stack,
                                                          GLKVector4 scaleVector)
      • GLKMatrixStackRotate

        public static void GLKMatrixStackRotate​(GLKMatrixStackRef stack,
                                                float radians,
                                                float x,
                                                float y,
                                                float z)
        Rotate the topmost matrix about the specified axis.
      • GLKMatrixStackRotateWithVector3

        public static void GLKMatrixStackRotateWithVector3​(GLKMatrixStackRef stack,
                                                           float radians,
                                                           GLKVector3 axisVector)
      • GLKMatrixStackRotateWithVector4

        public static void GLKMatrixStackRotateWithVector4​(GLKMatrixStackRef stack,
                                                           float radians,
                                                           GLKVector4 axisVector)
      • GLKMatrixStackRotateX

        public static void GLKMatrixStackRotateX​(GLKMatrixStackRef stack,
                                                 float radians)
        Rotate the topmost matrix about the x, y, or z axis.
      • GLKMatrixStackRotateY

        public static void GLKMatrixStackRotateY​(GLKMatrixStackRef stack,
                                                 float radians)
      • GLKMatrixStackRotateZ

        public static void GLKMatrixStackRotateZ​(GLKMatrixStackRef stack,
                                                 float radians)
      • GLKMathDegreesToRadians

        public static float GLKMathDegreesToRadians​(float degrees)
      • GLKMathRadiansToDegrees

        public static float GLKMathRadiansToDegrees​(float radians)
      • GLKMathUnproject

        public static GLKVector3 GLKMathUnproject​(GLKVector3 window,
                                                  GLKMatrix4 model,
                                                  GLKMatrix4 projection,
                                                  org.moe.natj.general.ptr.IntPtr viewport,
                                                  org.moe.natj.general.ptr.BoolPtr success)
      • NSStringFromGLKMatrix2

        public static java.lang.String NSStringFromGLKMatrix2​(GLKMatrix2 matrix)
      • NSStringFromGLKMatrix3

        public static java.lang.String NSStringFromGLKMatrix3​(GLKMatrix3 matrix)
      • NSStringFromGLKMatrix4

        public static java.lang.String NSStringFromGLKMatrix4​(GLKMatrix4 matrix)
      • NSStringFromGLKVector2

        public static java.lang.String NSStringFromGLKVector2​(GLKVector2 vector)
      • NSStringFromGLKVector3

        public static java.lang.String NSStringFromGLKVector3​(GLKVector3 vector)
      • NSStringFromGLKVector4

        public static java.lang.String NSStringFromGLKVector4​(GLKVector4 vector)
      • NSStringFromGLKQuaternion

        public static java.lang.String NSStringFromGLKQuaternion​(GLKQuaternion quaternion)
      • GLKVertexAttributeParametersFromModelIO

        public static GLKVertexAttributeParameters GLKVertexAttributeParametersFromModelIO​(long vertexFormat)
        [@struct] GLKVertexAttributeParametersFromModelIO Returns parameters to use in a call to glVertexAttribPointer given a MDLVertexFormat
      • GLKQuaternionIdentity

        public static GLKQuaternion GLKQuaternionIdentity()
      • GLKMatrix3Identity

        public static GLKMatrix3 GLKMatrix3Identity()
      • GLKMatrix4Identity

        public static GLKMatrix4 GLKMatrix4Identity()
      • kGLKModelErrorDomain

        public static java.lang.String kGLKModelErrorDomain()
        [@constant] kGLKModelErrorDomain
      • kGLKModelErrorKey

        public static java.lang.String kGLKModelErrorKey()
        [@constant] kGLKModelErrorKey
      • GLKTextureLoaderApplyPremultiplication

        public static java.lang.String GLKTextureLoaderApplyPremultiplication()
        Dictionary keys for texture loader properties GLKTextureLoaderApplyPremultiplication - A boolean NSNumber. Non-alpha channels are premultiplied by corresponding alpha channel values. For compressed formats, this option must be omitted, or false. False by default.
      • GLKTextureLoaderGenerateMipmaps

        public static java.lang.String GLKTextureLoaderGenerateMipmaps()
        GLKTextureLoaderGenerateMipmaps - A boolean NSNumber Generates all levels of mipmaps for the current image being loaded as a texture. Generates mipmap levels for all faces when used with cube maps. Sets GL_TEXTURE_MIN_FILTER parameter to GL_LINEAR_MIPMAP_LINEAR when true. False by default.
      • GLKTextureLoaderOriginBottomLeft

        public static java.lang.String GLKTextureLoaderOriginBottomLeft()
        GLKTextureLoaderOriginBottomLeft - A boolean NSNumber. Transform image data to match OpenGL's bottom left orientation specification. False by default.
      • GLKTextureLoaderGrayscaleAsAlpha

        public static java.lang.String GLKTextureLoaderGrayscaleAsAlpha()
        GLKTextureLoaderGrayscaleAsAlpha - A boolean NSNumber. If true, a single channel grayscale image is loaded as GL_ALPHA. If false, it will be loaded as GL_LUMINANCE. Has no effect on non-grayscale images and on OS X. False by default.
      • GLKTextureLoaderSRGB

        public static java.lang.String GLKTextureLoaderSRGB()
      • GLKTextureLoaderErrorDomain

        public static java.lang.String GLKTextureLoaderErrorDomain()
        Error domain for GLKTextureLoader
      • GLKTextureLoaderErrorKey

        public static java.lang.String GLKTextureLoaderErrorKey()
        Error keys for obtaining more error information
      • GLKTextureLoaderGLErrorKey

        public static java.lang.String GLKTextureLoaderGLErrorKey()