iOS Developer Library — Pre-Release

Developer

GLKit Framework Reference GLKMatrix3 Reference

Options
Deployment Target:

On This Page
Language:

GLKMatrix3 Reference

Inheritance


Not Applicable

Conforms To


Not Applicable

Import Statement


Swift

import GLKit

Objective-C

@import GLKit;

The GKLMatrix3 type defines a 3x3 floating-point matrix as well as many mathematical operations commonly used to manipulate matrices. A 3x3 matrix is commonly used in graphics programming to represent scaling or rotation transformations to convert from one coordinate system to another.

The functions that manipulate GKLMatrix3 structures treat the inputs as immutable, instead returning a new matrix that represent the results of the operation.

Functions

  • Returns a 3x3 matrix created from individual component values.

    Declaration

    Swift

    func GLKMatrix3Make(_ m00: Float, _ m01: Float, _ m02: Float, _ m10: Float, _ m11: Float, _ m12: Float, _ m20: Float, _ m21: Float, _ m22: Float) -> GLKMatrix3

    Objective-C

    GLKMatrix3 GLKMatrix3Make ( float m00, float m01, float m02, float m10, float m11, float m12, float m20, float m21, float m22 );

    Parameters

    m00

    The value for position [0,0] in the returned matrix.

    m01

    The value for position [0,1] in the returned matrix.

    m02

    The value for position [0,2] in the returned matrix.

    m10

    The value for position [1,0] in the returned matrix.

    m11

    The value for position [1,1] in the returned matrix.

    m12

    The value for position [1,2] in the returned matrix.

    m20

    The value for position [2,0] in the returned matrix.

    m21

    The value for position [2,1] in the returned matrix.

    m22

    The value for position [2,2] in the returned matrix.

    Return Value

    A new matrix.

    Import Statement

    Objective-C

    @import GLKit;

    Swift

    import GLKit

    Availability

    Available in iOS 5.0 and later.

  • Returns a 3x3 transposed matrix created from individual component values.

    Declaration

    Swift

    func GLKMatrix3MakeAndTranspose(_ m00: Float, _ m01: Float, _ m02: Float, _ m10: Float, _ m11: Float, _ m12: Float, _ m20: Float, _ m21: Float, _ m22: Float) -> GLKMatrix3

    Objective-C

    GLKMatrix3 GLKMatrix3MakeAndTranspose ( float m00, float m01, float m02, float m10, float m11, float m12, float m20, float m21, float m22 );

    Parameters

    m00

    The value for position [0,0] in the returned matrix.

    m01

    The value for position [1,0] in the returned matrix.

    m02

    The value for position [2,0] in the returned matrix.

    m10

    The value for position [0,1] in the returned matrix.

    m11

    The value for position [1,1] in the returned matrix.

    m12

    The value for position [2,1] in the returned matrix.

    m20

    The value for position [0,2] in the returned matrix.

    m21

    The value for position [1,2] in the returned matrix.

    m22

    The value for position [2,2] in the returned matrix.

    Return Value

    A new matrix.

    Import Statement

    Objective-C

    @import GLKit;

    Swift

    import GLKit

    Availability

    Available in iOS 5.0 and later.

  • Returns a 3x3 matrix created from an array of component values.

    Declaration

    Swift

    func GLKMatrix3MakeWithArray(_ float values[9]: UnsafeMutablePointer<Float>) -> GLKMatrix3

    Objective-C

    GLKMatrix3 GLKMatrix3MakeWithArray ( float values[9] );

    Parameters

    float values[9]

    The set of component values, in column-major order.

    Return Value

    A new matrix.

    Import Statement

    Objective-C

    @import GLKit;

    Swift

    import GLKit

    Availability

    Available in iOS 5.0 and later.

  • Returns a 3x3 transposed matrix created from an array of component values.

    Declaration

    Swift

    func GLKMatrix3MakeWithArrayAndTranspose(_ float values[9]: UnsafeMutablePointer<Float>) -> GLKMatrix3

    Objective-C

    GLKMatrix3 GLKMatrix3MakeWithArrayAndTranspose ( float values[9] );

    Parameters

    float values[9]

    The set of component values, in column-major order.

    Return Value

    A new matrix.

    Discussion

    The matrix is created and then transposed, before being returned to your application.

    Import Statement

    Objective-C

    @import GLKit;

    Swift

    import GLKit

    Availability

    Available in iOS 5.0 and later.

  • Returns a 3x3 matrix created from three column vectors.

    Declaration

    Swift

    func GLKMatrix3MakeWithColumns(_ column0: GLKVector3, _ column1: GLKVector3, _ column2: GLKVector3) -> GLKMatrix3

    Objective-C

    GLKMatrix3 GLKMatrix3MakeWithColumns ( GLKVector3 column0, GLKVector3 column1, GLKVector3 column2 );

    Parameters

    column0

    The first column.

    column1

    The second column.

    column2

    The third column.

    Return Value

    A new matrix.

    Import Statement

    Objective-C

    @import GLKit;

    Swift

    import GLKit

    Availability

    Available in iOS 5.0 and later.

  • Returns a 3x3 matrix created from three row vectors.

    Declaration

    Swift

    func GLKMatrix3MakeWithRows(_ row0: GLKVector3, _ row1: GLKVector3, _ row2: GLKVector3) -> GLKMatrix3

    Objective-C

    GLKMatrix3 GLKMatrix3MakeWithRows ( GLKVector3 row0, GLKVector3 row1, GLKVector3 row2 );

    Parameters

    row0

    The first row.

    row1

    The second row.

    row2

    The third row.

    Return Value

    A new matrix.

    Import Statement

    Objective-C

    @import GLKit;

    Swift

    import GLKit

    Availability

    Available in iOS 5.0 and later.

  • Returns a 3x3 matrix that performs a rotation around an arbitrary vector.

    Declaration

    Swift

    func GLKMatrix3MakeRotation(_ radians: Float, _ x: Float, _ y: Float, _ z: Float) -> GLKMatrix3

    Objective-C

    GLKMatrix3 GLKMatrix3MakeRotation ( float radians, float x, float y, float z );

    Parameters

    radians

    The angle of the rotation (a positive angle is counterclockwise).

    x

    The x component of the rotation vector.

    y

    The y component of the rotation vector.

    z

    The z component of the rotation vector.

    Return Value

    A new rotation matrix.

    Import Statement

    Objective-C

    @import GLKit;

    Swift

    import GLKit

    Availability

    Available in iOS 5.0 and later.

  • Returns a 3x3 matrix that performs a rotation around the positive x-axis.

    Declaration

    Swift

    func GLKMatrix3MakeXRotation(_ radians: Float) -> GLKMatrix3

    Objective-C

    GLKMatrix3 GLKMatrix3MakeXRotation ( float radians );

    Parameters

    radians

    The angle of the rotation (a positive angle is counterclockwise).

    Return Value

    A new rotation matrix.

    Import Statement

    Objective-C

    @import GLKit;

    Swift

    import GLKit

    Availability

    Available in iOS 5.0 and later.

  • Returns a 3x3 matrix that performs a rotation around the positive y-axis.

    Declaration

    Swift

    func GLKMatrix3MakeYRotation(_ radians: Float) -> GLKMatrix3

    Objective-C

    GLKMatrix3 GLKMatrix3MakeYRotation ( float radians );

    Parameters

    radians

    The angle of the rotation (a positive angle is counterclockwise).

    Return Value

    A new rotation matrix.

    Import Statement

    Objective-C

    @import GLKit;

    Swift

    import GLKit

    Availability

    Available in iOS 5.0 and later.

  • Returns a 3x3 matrix that performs a rotation around the positive z-axis.

    Declaration

    Swift

    func GLKMatrix3MakeZRotation(_ radians: Float) -> GLKMatrix3

    Objective-C

    GLKMatrix3 GLKMatrix3MakeZRotation ( float radians );

    Parameters

    radians

    The angle of the rotation (a positive angle is counterclockwise).

    Return Value

    A new rotation matrix.

    Import Statement

    Objective-C

    @import GLKit;

    Swift

    import GLKit

    Availability

    Available in iOS 5.0 and later.

  • Returns a 3x3 matrix that performs a rotation based on a quaternion.

    Declaration

    Swift

    func GLKMatrix3MakeWithQuaternion(_ quaternion: GLKQuaternion) -> GLKMatrix3

    Objective-C

    GLKMatrix3 GLKMatrix3MakeWithQuaternion ( GLKQuaternion quaternion );

    Parameters

    quaternion

    The quaternion.

    Return Value

    A new matrix that provides an equivalent rotation to that stored in the quaternion.

    Import Statement

    Objective-C

    @import GLKit;

    Swift

    import GLKit

    Availability

    Available in iOS 5.0 and later.

  • Returns a 3x3 matrix that performs a scaling transformation.

    Declaration

    Swift

    func GLKMatrix3MakeScale(_ sx: Float, _ sy: Float, _ sz: Float) -> GLKMatrix3

    Objective-C

    GLKMatrix3 GLKMatrix3MakeScale ( float sx, float sy, float sz );

    Parameters

    sx

    The amount to scale the x component.

    sy

    The amount to scale the y component.

    sz

    The amount to scale the z component.

    Return Value

    A new scaling matrix.

    Import Statement

    Objective-C

    @import GLKit;

    Swift

    import GLKit

    Availability

    Available in iOS 5.0 and later.

  • Returns the upper-left 2x2 section of a 3x3 matrix.

    Declaration

    Swift

    func GLKMatrix3GetMatrix2(_ matrix: GLKMatrix3) -> GLKMatrix2

    Objective-C

    GLKMatrix2 GLKMatrix3GetMatrix2 ( GLKMatrix3 matrix );

    Parameters

    matrix

    A matrix.

    Return Value

    A new 2x2 matrix.

    Import Statement

    Objective-C

    @import GLKit;

    Swift

    import GLKit

    Availability

    Available in iOS 5.0 and later.

  • Retrieves a column from a 3x3 matrix.

    Declaration

    Swift

    func GLKMatrix3GetColumn(_ matrix: GLKMatrix3, _ column: Int32) -> GLKVector3

    Objective-C

    GLKVector3 GLKMatrix3GetColumn ( GLKMatrix3 matrix, int column );

    Parameters

    matrix

    A 3x3 matrix.

    column

    The column index, which must be a number between 0 and 2, inclusive.

    Return Value

    A vector representing the column retrieved from the matrix.

    Import Statement

    Objective-C

    @import GLKit;

    Swift

    import GLKit

    Availability

    Available in iOS 5.0 and later.

  • Retrieves a row from a 3x3 matrix.

    Declaration

    Swift

    func GLKMatrix3GetRow(_ matrix: GLKMatrix3, _ row: Int32) -> GLKVector3

    Objective-C

    GLKVector3 GLKMatrix3GetRow ( GLKMatrix3 matrix, int row );

    Parameters

    matrix

    A 3x3 matrix.

    row

    The row index, which must be a number between 0 and 2, inclusive.

    Return Value

    A vector representing the row retrieved from the matrix.

    Import Statement

    Objective-C

    @import GLKit;

    Swift

    import GLKit

    Availability

    Available in iOS 5.0 and later.

  • Returns a new 3x3 matrix with one column replaced by a new vector.

    Declaration

    Swift

    func GLKMatrix3SetColumn(_ matrix: GLKMatrix3, _ column: Int32, _ vector: GLKVector3) -> GLKMatrix3

    Objective-C

    GLKMatrix3 GLKMatrix3SetColumn ( GLKMatrix3 matrix, int column, GLKVector3 vector );

    Parameters

    matrix

    The source matrix.

    column

    The index of the column to replace, which must be a number between 0 and 2, inclusive.

    vector

    A vector holding the replacement component values.

    Return Value

    A new matrix.

    Import Statement

    Objective-C

    @import GLKit;

    Swift

    import GLKit

    Availability

    Available in iOS 5.0 and later.

  • Returns a new 3x3 matrix with one row replaced by a new vector.

    Declaration

    Swift

    func GLKMatrix3SetRow(_ matrix: GLKMatrix3, _ row: Int32, _ vector: GLKVector3) -> GLKMatrix3

    Objective-C

    GLKMatrix3 GLKMatrix3SetRow ( GLKMatrix3 matrix, int row, GLKVector3 vector );

    Parameters

    matrix

    The source matrix.

    row

    The index of the row to replace, which must be a number between 0 and 2, inclusive.

    vector

    A vector holding the replacement component values.

    Return Value

    A new matrix.

    Import Statement

    Objective-C

    @import GLKit;

    Swift

    import GLKit

    Availability

    Available in iOS 5.0 and later.

  • Returns the inverse of a matrix.

    Declaration

    Swift

    func GLKMatrix3Invert(_ matrix: GLKMatrix3, _ isInvertible: UnsafeMutablePointer<Bool>) -> GLKMatrix3

    Objective-C

    GLKMatrix3 GLKMatrix3Invert ( GLKMatrix3 matrix, bool *isInvertible );

    Parameters

    matrix

    A matrix.

    isInvertible

    On return, this holds YEStrue if the matrix was inverted or NOfalse if the matrix is not invertible.

    Return Value

    If isInvertible was set to YEStrue, this holds an inverted matrix. Otherwise, the identity matrix is returned.

    Import Statement

    Objective-C

    @import GLKit;

    Swift

    import GLKit

    Availability

    Available in iOS 5.0 and later.

  • Returns the transpose of a matrix.

    Declaration

    Swift

    func GLKMatrix3Transpose(_ matrix: GLKMatrix3) -> GLKMatrix3

    Objective-C

    GLKMatrix3 GLKMatrix3Transpose ( GLKMatrix3 matrix );

    Parameters

    matrix

    A matrix.

    Return Value

    The transpose of the matrix.

    Import Statement

    Objective-C

    @import GLKit;

    Swift

    import GLKit

    Availability

    Available in iOS 5.0 and later.

  • Returns the inverse transpose of a matrix.

    Declaration

    Swift

    func GLKMatrix3InvertAndTranspose(_ matrix: GLKMatrix3, _ isInvertible: UnsafeMutablePointer<Bool>) -> GLKMatrix3

    Objective-C

    GLKMatrix3 GLKMatrix3InvertAndTranspose ( GLKMatrix3 matrix, bool *isInvertible );

    Parameters

    matrix

    A matrix.

    isInvertible

    On return, this holds YEStrue if the matrix was inverted or NOfalse if the matrix is not invertible.

    Return Value

    If isInvertible was set to YEStrue, this holds an inverted and transposed matrix. Otherwise, the identity matrix is returned.

    Import Statement

    Objective-C

    @import GLKit;

    Swift

    import GLKit

    Availability

    Available in iOS 5.0 and later.

  • Returns the product of two matrices.

    Declaration

    Swift

    func GLKMatrix3Multiply(_ matrixLeft: GLKMatrix3, _ matrixRight: GLKMatrix3) -> GLKMatrix3

    Objective-C

    GLKMatrix3 GLKMatrix3Multiply ( GLKMatrix3 matrixLeft, GLKMatrix3 matrixRight );

    Parameters

    matrixLeft

    The multiplicand.

    matrixRight

    The multiplier.

    Return Value

    A new matrix formed by multiplying the two matrices together.

    Import Statement

    Objective-C

    @import GLKit;

    Swift

    import GLKit

    Availability

    Available in iOS 5.0 and later.

  • Returns a new 3x3 matrix created by concatenating a matrix with a rotation around a vector.

    Declaration

    Swift

    func GLKMatrix3Rotate(_ matrix: GLKMatrix3, _ radians: Float, _ x: Float, _ y: Float, _ z: Float) -> GLKMatrix3

    Objective-C

    GLKMatrix3 GLKMatrix3Rotate ( GLKMatrix3 matrix, float radians, float x, float y, float z );

    Parameters

    matrix

    The source matrix.

    radians

    The angle of the rotation (a positive angle is counterclockwise).

    x

    The x component of the rotation vector.

    y

    The y component of the rotation vector.

    z

    The z component of the rotation vector.

    Return Value

    A new matrix.

    Import Statement

    Objective-C

    @import GLKit;

    Swift

    import GLKit

    Availability

    Available in iOS 5.0 and later.

  • Returns a new 3x3 matrix created by concatenating a matrix with a rotation around a vector.

    Declaration

    Swift

    func GLKMatrix3RotateWithVector3(_ matrix: GLKMatrix3, _ radians: Float, _ axisVector: GLKVector3) -> GLKMatrix3

    Objective-C

    GLKMatrix3 GLKMatrix3RotateWithVector3 ( GLKMatrix3 matrix, float radians, GLKVector3 axisVector );

    Parameters

    matrix

    The source matrix.

    radians

    The angle of the rotation (a positive angle is counterclockwise).

    axisVector

    The axis to perform the rotation around.

    Return Value

    A new matrix.

    Import Statement

    Objective-C

    @import GLKit;

    Swift

    import GLKit

    Availability

    Available in iOS 5.0 and later.

  • Returns a new 3x3 matrix created by concatenating a matrix with a rotation around a vector.

    Declaration

    Swift

    func GLKMatrix3RotateWithVector4(_ matrix: GLKMatrix3, _ radians: Float, _ axisVector: GLKVector4) -> GLKMatrix3

    Objective-C

    GLKMatrix3 GLKMatrix3RotateWithVector4 ( GLKMatrix3 matrix, float radians, GLKVector4 axisVector );

    Parameters

    matrix

    The source matrix.

    radians

    The angle of the rotation (a positive angle is counterclockwise).

    axisVector

    The axis to perform the rotation around.

    Return Value

    A new matrix.

    Discussion

    The w-component of the axisVector parameter is ignored.

    Import Statement

    Objective-C

    @import GLKit;

    Swift

    import GLKit

    Availability

    Available in iOS 5.0 and later.

  • Returns a new 3x3 matrix created by concatenating a matrix with a rotation around the x-axis.

    Declaration

    Swift

    func GLKMatrix3RotateX(_ matrix: GLKMatrix3, _ radians: Float) -> GLKMatrix3

    Objective-C

    GLKMatrix3 GLKMatrix3RotateX ( GLKMatrix3 matrix, float radians );

    Parameters

    matrix

    The source matrix.

    radians

    The angle of the rotation (a positive angle is counterclockwise).

    Return Value

    A new matrix.

    Import Statement

    Objective-C

    @import GLKit;

    Swift

    import GLKit

    Availability

    Available in iOS 5.0 and later.

  • Returns a new 3x3 matrix created by concatenating a matrix with a rotation around the y-axis.

    Declaration

    Swift

    func GLKMatrix3RotateY(_ matrix: GLKMatrix3, _ radians: Float) -> GLKMatrix3

    Objective-C

    GLKMatrix3 GLKMatrix3RotateY ( GLKMatrix3 matrix, float radians );

    Parameters

    matrix

    The source matrix.

    radians

    The angle of the rotation.

    Return Value

    A new matrix.

    Import Statement

    Objective-C

    @import GLKit;

    Swift

    import GLKit

    Availability

    Available in iOS 5.0 and later.

  • Returns a new 3x3 matrix created by concatenating a matrix with a rotation around the z-axis.

    Declaration

    Swift

    func GLKMatrix3RotateZ(_ matrix: GLKMatrix3, _ radians: Float) -> GLKMatrix3

    Objective-C

    GLKMatrix3 GLKMatrix3RotateZ ( GLKMatrix3 matrix, float radians );

    Parameters

    matrix

    The source matrix.

    radians

    The angle of the rotation (a positive angle is counterclockwise).

    Return Value

    A new matrix.

    Import Statement

    Objective-C

    @import GLKit;

    Swift

    import GLKit

    Availability

    Available in iOS 5.0 and later.

  • Returns a new 3x3 matrix created by concatenating a matrix with a scaling transform.

    Declaration

    Swift

    func GLKMatrix3Scale(_ matrix: GLKMatrix3, _ sx: Float, _ sy: Float, _ sz: Float) -> GLKMatrix3

    Objective-C

    GLKMatrix3 GLKMatrix3Scale ( GLKMatrix3 matrix, float sx, float sy, float sz );

    Parameters

    matrix

    The source matrix.

    sx

    The amount to scale the x component.

    sy

    The amount to scale the y component.

    sz

    The amount to scale the z component.

    Return Value

    A new matrix.

    Import Statement

    Objective-C

    @import GLKit;

    Swift

    import GLKit

    Availability

    Available in iOS 5.0 and later.

  • Returns a new 3x3 matrix created by concatenating a matrix with a scaling transform defined by a vector.

    Declaration

    Swift

    func GLKMatrix3ScaleWithVector3(_ matrix: GLKMatrix3, _ scaleVector: GLKVector3) -> GLKMatrix3

    Objective-C

    GLKMatrix3 GLKMatrix3ScaleWithVector3 ( GLKMatrix3 matrix, GLKVector3 scaleVector );

    Parameters

    matrix

    The source matrix.

    scaleVector

    A vector whose x, y and z components are used to scale the matrix.

    Return Value

    A new matrix.

    Import Statement

    Objective-C

    @import GLKit;

    Swift

    import GLKit

    Availability

    Available in iOS 5.0 and later.

  • Returns a new 3x3 matrix created by concatenating a matrix with a scaling transform defined by a vector.

    Declaration

    Swift

    func GLKMatrix3ScaleWithVector4(_ matrix: GLKMatrix3, _ scaleVector: GLKVector4) -> GLKMatrix3

    Objective-C

    GLKMatrix3 GLKMatrix3ScaleWithVector4 ( GLKMatrix3 matrix, GLKVector4 scaleVector );

    Parameters

    matrix

    The source matrix.

    scaleVector

    A vector whose x, y and z components are used to scale the matrix.

    Return Value

    A new matrix.

    Import Statement

    Objective-C

    @import GLKit;

    Swift

    import GLKit

    Availability

    Available in iOS 5.0 and later.

  • Returns a new 3x3 matrix created by performing a component-wise addition of two matrices.

    Declaration

    Swift

    func GLKMatrix3Add(_ matrixLeft: GLKMatrix3, _ matrixRight: GLKMatrix3) -> GLKMatrix3

    Objective-C

    GLKMatrix3 GLKMatrix3Add ( GLKMatrix3 matrixLeft, GLKMatrix3 matrixRight );

    Parameters

    matrixLeft

    The first matrix.

    matrixRight

    The second matrix.

    Return Value

    A new matrix whose components each represent the sum of the components found in the same positions of the two source matrices.

    Import Statement

    Objective-C

    @import GLKit;

    Swift

    import GLKit

    Availability

    Available in iOS 5.0 and later.

  • Returns a new 3x3 matrix created by performing a component-wise subtraction of two matrices.

    Declaration

    Swift

    func GLKMatrix3Subtract(_ matrixLeft: GLKMatrix3, _ matrixRight: GLKMatrix3) -> GLKMatrix3

    Objective-C

    GLKMatrix3 GLKMatrix3Subtract ( GLKMatrix3 matrixLeft, GLKMatrix3 matrixRight );

    Parameters

    matrixLeft

    The starting matrix.

    matrixRight

    The matrix to subtract.

    Return Value

    A new matrix whose components each represent the difference between the components found in the same positions of the two source matrices.

    Import Statement

    Objective-C

    @import GLKit;

    Swift

    import GLKit

    Availability

    Available in iOS 5.0 and later.

  • Multiplies a 3x3 matrix by a vector.

    Declaration

    Swift

    func GLKMatrix3MultiplyVector3(_ matrixLeft: GLKMatrix3, _ vectorRight: GLKVector3) -> GLKVector3

    Objective-C

    GLKVector3 GLKMatrix3MultiplyVector3 ( GLKMatrix3 matrixLeft, GLKVector3 vectorRight );

    Parameters

    matrixLeft

    The matrix multiplicand.

    vectorRight

    The vector multiplier.

    Return Value

    A new vector created by multiplying the matrix by the vector.

    Import Statement

    Objective-C

    @import GLKit;

    Swift

    import GLKit

    Availability

    Available in iOS 5.0 and later.

  • Multiplies a 3x3 matrix by an array of vectors.

    Declaration

    Swift

    func GLKMatrix3MultiplyVector3Array(_ matrix: GLKMatrix3, _ vectors: UnsafeMutablePointer<GLKVector3>, _ vectorCount: Int)

    Objective-C

    void GLKMatrix3MultiplyVector3Array ( GLKMatrix3 matrix, GLKVector3 *vectors, size_t vectorCount );

    Parameters

    matrix

    The matrix multiplicand.

    vectors

    On entry, an array of input vectors. On return, an array of output vectors.

    vectorCount

    The number of vectors in the array.

    Import Statement

    Objective-C

    @import GLKit;

    Swift

    import GLKit

    Availability

    Available in iOS 5.0 and later.

Data Types

  • A 2x2 matrix.

    Declaration

    Swift

    typealias GLKMatrix2 = _GLKMatrix2

    Objective-C

    union _GLKMatrix2 { struct { float m00, m01; float m10, m11; }; float m2[2][2]; float m[4]; }; typedef union _GLKMatrix2 GLKMatrix2;

    Fields

    m00

    The [0,0] element of the matrix.

    m01

    The [0,1] element of the matrix.

    m10

    The [1,0] element of the matrix.

    m11

    The [1,1] element of the matrix.

    m2

    A two-dimensional array of the matrix's elements in column-major order.

    m

    A one-dimensional array of the matrix’s elements in column-major order.

    Availability

    Available in iOS 5.0 and later.

  • A 3x3 matrix stored in column-major order.

    Declaration

    Swift

    typealias GLKMatrix3 = _GLKMatrix3

    Objective-C

    union _GLKMatrix3 { struct { float m00, m01, m02; float m10, m11, m12; float m20, m21, m22; }; float m[9]; }; typedef union _GLKMatrix3 GLKMatrix3;

    Fields

    m00

    The [0,0] element of the matrix.

    m01

    The [0,1] element of the matrix.

    m02

    The [0,2] element of the matrix.

    m10

    The [1,0] element of the matrix.

    m11

    The [1,1] element of the matrix.

    m12

    The [1,2] element of the matrix.

    m20

    The [2,0] element of the matrix.

    m21

    The [2,1] element of the matrix.

    m22

    The [2,2] element of the matrix.

    m

    A one-dimensional array of the matrix’s elements in column-major order.

    Availability

    Available in iOS 5.0 and later.

Constants

  • A 3x3 identity matrix.

    Declaration

    Swift

    let GLKMatrix3Identity: GLKMatrix3

    Objective-C

    extern const GLKMatrix3 GLKMatrix3Identity;

    Constants

    • GLKMatrix3Identity

      GLKMatrix3Identity

      A 3x3 identity matrix.

      Available in iOS 5.0 and later.