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

@:implw:Float

@:implx:Float

@:imply:Float

@:implz:Float

Methods

@:implinlinecopy ():Vec4

@:implinlinecopy_from (this:Array<Float>):Vec4

@:implinlineequals (this:Array<Float>):Bool

@:implinlineput ():Void

@:implinlinescale (this:Array<Float>):Vec4

@:value({ w : 0, z : 0, y : 0, x : 0 })@:implinlineset (this:Array<Float>, x:Float = 0, y:Float = 0, z:Float = 0):Vec4

@:implinlinetoString ():String

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