Contents

GLKMatrixStackRotateWithVector4(_:_:_:)

Replaces the contents of the top matrix with a matrix calculated by composing the top matrix with a rotation around an arbitrary axis.

Declaration

func GLKMatrixStackRotateWithVector4(_ stack: GLKMatrixStack, _ radians: Float, _ axisVector: GLKVector4)

Parameters

  • stack:

    A matrix stack.

  • radians:

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

  • axisVector:

    A vector whose x,y and z coordinates are used as the axis of rotation.

See Also

Functions