A simple Vector class
Usage:
- Initialize using Vec4.get()
var vec = Vec4.get(0, 1, 0, 1);
- Or with an array
var vec:Vec4 = [0, 1, 0, 1];
- Recycle vectors when you're done with them:
my_vector.put()
Variables
Methods
@:implinlineequals (this:Array<Float>):Bool
@:value({ w : 0, z : 0, y : 0, x : 0 })@:implinlineset (this:Array<Float>, x:Float = 0, y:Float = 0, z:Float = 0):Vec4
Static methods
@:value({ w : 0, z : 0, y : 0, x : 0 })staticget (x:Float = 0, y:Float = 0, z:Float = 0, w:Float = 0):Vec4