A 4 floats vector. Everytime a Vector is returned, it means a copy is created.

Constructor

@:value({ w : 1., z : 0., y : 0., x : 0. })inlinenew(x:Float = 0., y:Float = 0., z:Float = 0., w:Float = 1.)

Variables

a:Float

b:Float

g:Float

r:Float

w:Float

x:Float

y:Float

z:Float

Methods

inlineclone():Vector4

inlinedot3(v:Vector4):Float

inlinedot4(v:Vector4):Float

inlineequals(v:Vector4):Bool

inlinelerp(v1:Vector4, v2:Vector4, k:Float):Void

inlineload(v:Vector4):Void

@:value({ brightness : 0.5, saturation : 1. })makeColor(hue:Float, saturation:Float = 1., brightness:Float = 0.5):Void

inlineproject(m:Matrix):Void

inlinescale3(f:Float):Void

@:value({ w : 1., z : 0., y : 0., x : 0. })inlineset(x:Float = 0., y:Float = 0., z:Float = 0., w:Float = 1.):Void

inlinesetColor(c:Int):Void

inlinetoColor():Int

toString():String

inlinetransform(m:Matrix):Void

inlinetransform3x3(m:Matrix):Void

inlinetransform3x4(m:Matrix):Void