Skip to main content

ZTransform

actualpackageZTransform
20 items
constructorZTransform
constructor()constructor(position: ZVector3, rotation: ZQuaternion, scale: ZVector3)
var forward: ZVector3
val matrix: ZMatrix4
Represents the transformation matrix that defines local transformation of an object in a 3D space.
val pitch: Float
var position: ZVector3
Represents the position of the object in a 3D space.
var right: ZVector3
valroll
val roll: Float
var rotation: ZQuaternion
Represents the rotation of the object in a 3D space.
var rotationEuler: ZEuler
Represents the rotation of the object using Euler angles in radians. The Euler angles define the rotation about the three principal axes (roll, pitch, yaw).
var scale: ZVector3
Represents the scale of the object in a 3D space.
varup
var up: ZVector3
valyaw
val yaw: Float
fun lookAt(look: ZVector3)fun lookAt(look: ZVector3, up: ZVector3)
funpan
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.
fun rotate(q: ZQuaternion)fun rotate(angle: Float, axis: ZVector3)fun rotate(angle: Float, x: Float, y: Float, z: Float)
fun rotateAround(angle: Float, point: ZVector3, axis: ZVector3)fun rotateAround(angle: Float, point: ZVector3, axis: ZVector3, through: ZVector3)
fun scale(s: Float)fun scale(v: ZVector3)fun scale(sx: Float, sy: Float, sz: Float)
fun setPosition(x: Float, y: Float, z: Float)
fun setRotation(angle: Float, axis: ZVector3)fun setRotation(angle: Float, x: Float, y: Float, z: Float)
fun translate(v: ZVector3)fun translate(x: Float, y: Float, z: Float)