openrndr / org.openrndr.math.transforms / TransformBuilder

TransformBuilder

class TransformBuilder (source)

Constructors

<init>

TransformBuilder()

Properties

transform

var transform: Matrix44

Functions

multiply

fun multiply(matrix: Matrix44): Unit

rotate

fun rotate(axis: Quaternion): Unit
fun rotate(axis: Vector3 = Vector3.UNIT_Z, degrees: Double): Unit

scale

fun scale(scale: Double): Unit
fun scale(scaleX: Double, scaleY: Double, scaleZ: Double): Unit
fun scale(scale: Vector3): Unit

translate

fun translate(offset: Vector3): Unit
fun translate(offset: Vector2): Unit
fun translate(x: Double, y: Double, z: Double = 0.0): Unit