Constructors

Link copied to clipboard
constructor()
constructor(position: ZVector3, rotation: ZQuaternion, scale: ZVector3)

Properties

Link copied to clipboard
Link copied to clipboard

Represents the transformation matrix that defines local transformation of an object in a 3D space.

Link copied to clipboard

Represents the position of the object in a 3D space.

Link copied to clipboard
Link copied to clipboard

Represents the rotation of the object in a 3D space.

Link copied to clipboard

Represents the scale of the object in a 3D space.

Link copied to clipboard

Functions

Link copied to clipboard
fun lookAt(look: ZVector3)
fun lookAt(look: ZVector3, up: ZVector3)
Link copied to clipboard
fun pan(offset: ZVector2)

fun pan(offsetRight: Float, offsetUp: Float)

Adjusts the position of the object by panning it to the right and up directions.

Link copied to clipboard
fun rotate(angle: Float, axis: ZVector3)
fun rotate(angle: Float, x: Float, y: Float, z: Float)
Link copied to clipboard
fun rotateAround(angle: Float, point: ZVector3, axis: ZVector3)
fun rotateAround(angle: Float, point: ZVector3, axis: ZVector3, through: ZVector3)
Link copied to clipboard
fun scale(s: Float)
fun scale(v: ZVector3)
fun scale(sx: Float, sy: Float, sz: Float)
Link copied to clipboard
fun setPosition(x: Float, y: Float, z: Float)
Link copied to clipboard
fun setRotation(angle: Float, axis: ZVector3)
fun setRotation(angle: Float, x: Float, y: Float, z: Float)
Link copied to clipboard
fun translate(x: Float, y: Float, z: Float)