Zernikalos/zernikalos.math/ZTransform ZTransform @Serializableclass ZTransform(source) Members Constructors ZTransform Link copied to clipboard constructor()constructor(position: ZVector3, rotation: ZQuaternion, scale: ZVector3) Properties forward Link copied to clipboard var forward: ZVector3 matrix Link copied to clipboard val matrix: ZMatrix4Represents the transformation matrix that defines local transformation of an object in a 3D space. pitch Link copied to clipboard val pitch: Float position Link copied to clipboard var position: ZVector3Represents the position of the object in a 3D space. right Link copied to clipboard var right: ZVector3 roll Link copied to clipboard val roll: Float rotation Link copied to clipboard var rotation: ZQuaternionRepresents the rotation of the object in a 3D space. rotationEuler Link copied to clipboard var rotationEuler: ZEulerRepresents the rotation of the object using Euler angles in radians. The Euler angles define the rotation about the three principal axes (roll, pitch, yaw). scale Link copied to clipboard var scale: ZVector3Represents the scale of the object in a 3D space. up Link copied to clipboard var up: ZVector3 yaw Link copied to clipboard val yaw: Float Functions lookAt Link copied to clipboard fun lookAt(look: ZVector3)fun lookAt(look: ZVector3, up: ZVector3) pan 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. rotate Link copied to clipboard fun rotate(q: ZQuaternion)fun rotate(angle: Float, axis: ZVector3)fun rotate(angle: Float, x: Float, y: Float, z: Float) rotateAround Link copied to clipboard fun rotateAround(angle: Float, point: ZVector3, axis: ZVector3)fun rotateAround(angle: Float, point: ZVector3, axis: ZVector3, through: ZVector3) scale Link copied to clipboard fun scale(s: Float)fun scale(v: ZVector3)fun scale(sx: Float, sy: Float, sz: Float) setPosition Link copied to clipboard fun setPosition(x: Float, y: Float, z: Float) setRotation Link copied to clipboard fun setRotation(angle: Float, axis: ZVector3)fun setRotation(angle: Float, x: Float, y: Float, z: Float) translate Link copied to clipboard fun translate(v: ZVector3)fun translate(x: Float, y: Float, z: Float) ZScalarPrevious PageOpNext Page