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:VectorImpl, v:Vector):Vector

staticinlinefromArray(a:Array<Float>):Vector

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

@:op(a *= b)staticinlinescale(this:VectorImpl, v:Float):Void

@:op(a * b)staticinlinescaled(this:VectorImpl, v:Float):Vector

@:op(a - b)staticinlinesub(this:VectorImpl, v:Vector):Vector

staticinlinetoPoint(this:VectorImpl):Vector

staticinlinetoVector(this:VectorImpl):Vector

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

@:op(a * b)staticinlinetransformed(this:VectorImpl, m:Matrix):Vector