A 4 floats vector. Everytime a Vector is returned, it means a copy is created. For function manipulating the length (length, normalize, dot, scale, etc.), the Vector acts like a Point in the sense only the X/Y/Z components will be affected.

Static methods

@:op(a + b)staticinlineadd(this:Vector4Impl, v:Vector4):Vector4

staticinlinefromArray(a:Array<Float>):Vector4

@:value({ scale : 1.0 })staticinlinefromColor(c:Int, scale:Float = 1.0):Vector4

@:op(a - b)staticinlinesub(this:Vector4Impl, v:Vector4):Vector4

@:op(a *= b)staticinlinetransform(this:Vector4Impl, m:Matrix):Void

@:op(a * b)staticinlinetransformed(this:Vector4Impl, m:Matrix):Vector4