3D vector class.
Static variables
Constructor
inlinenew(x:Float = 0, y:Float = 0, z:Float = 0)
Creates a new vector. The vector is zero vector by default.
Variables
Methods
inlinemulTransformEq(tf:Transform):Vec3
Sets this vector to the transformed vector by tf
and returns this
.
inlinenormalize():Vec3
Normalize this vector and returns this
.
If the length is zero, this vector is set to zero vector.
inlinenormalized():Vec3
Returns the normalized vector.
If the length is zero, zero vector is returned.