Companion

object Companion

Properties

Link copied to clipboard

The identity matrix.

Functions

Link copied to clipboard

Creates a Matrix4 from a float array.

Link copied to clipboard
fun getRotationMatrix(axis: ERROR CLASS: Symbol not found for Triple<kotlin/Float, kotlin/Float, kotlin/Float>, angle: Float): Matrix4

Generates a rotation matrix given an axis and an angle.

Link copied to clipboard
fun getScaleMatrix(scale: ERROR CLASS: Symbol not found for Triple<kotlin/Float, kotlin/Float, kotlin/Float>): Matrix4

Generates a scaling matrix given a scale vector.

Link copied to clipboard
fun getTransformationMatrix(position: ERROR CLASS: Symbol not found for Triple<kotlin/Float, kotlin/Float, kotlin/Float>, rotationAxis: ERROR CLASS: Symbol not found for Triple<kotlin/Float, kotlin/Float, kotlin/Float>, rotationAngle: Float, scale: ERROR CLASS: Symbol not found for Triple<kotlin/Float, kotlin/Float, kotlin/Float>): Matrix4

Generates a transformation matrix given position, rotation, and scale.

Link copied to clipboard
fun getTranslationMatrix(position: ERROR CLASS: Symbol not found for Triple<kotlin/Float, kotlin/Float, kotlin/Float>): Matrix4

Generates a translation matrix given a position.

Link copied to clipboard
fun rotate(x: Float, y: Float, z: Float, angle: Float): Matrix4

Generates a rotation matrix given x, y, z coordinates for the axis and an angle.

Link copied to clipboard
fun scale(scale: Float): Matrix4

Generates a uniform scaling matrix given a single scale factor.

fun scale(sx: Float, sy: Float, sz: Float): Matrix4

Generates a scaling matrix given x, y, and z scale factors.

Link copied to clipboard
fun translate(x: Float, y: Float, z: Float): Matrix4

Generates a translation matrix given x, y, and z coordinates.