TransformBuilder

class TransformBuilder(baseTransform: Matrix44 = Matrix44.IDENTITY)(source)

Build a Matrix44 transform

Constructors

Link copied to clipboard
constructor(baseTransform: Matrix44 = Matrix44.IDENTITY)

Functions

Link copied to clipboard
fun multiply(matrix: Matrix44)

multiply by matrix

Link copied to clipboard
fun rotate(degreesInAngles: Double)
fun rotate(quaternion: Quaternion)

rotate by quaternion

fun rotate(axis: Vector3 = Vector3.UNIT_Z, degrees: Double)
Link copied to clipboard
fun scale(scale: Double)
fun scale(scale: Vector3)

scale by scale

fun scale(scaleX: Double, scaleY: Double, scaleZ: Double = 1.0)
Link copied to clipboard
fun translate(offset: Vector2)
fun translate(offset: Vector3)

translate by offset

fun translate(x: Double, y: Double, z: Double = 0.0)

translate by x, y, z

Properties

Link copied to clipboard