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

Constructor

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

Variables

b:Float

g:Float

r:Float

x:Float

y:Float

z:Float

Methods

inlineadd(v:Vector):Vector

inlineclone():Vector

inlinedistance(v:Vector):Float

inlinedistanceSq(v:Vector):Float

inlinedot(v:Vector):Float

inlineequals(v:Vector):Bool

inlinelength():Float

inlinelengthSq():Float

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

inlineload(v:Vector):Void

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

inlinenormalStrength(strength:Float):Void

inlinenormalize():Void

inlinepackNormal():Void

inlineproject(m:Matrix):Void

inlinescale(f:Float):Void

inlinescaled(v:Float):Vector

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

inlinesetColor(c:Int):Void

inlinesub(v:Vector):Vector

inlinetoColor():Int

toString():String

inlinetransform(m:Matrix):Void

inlinetransform3x3(m:Matrix):Void

inlineunpackNormal():Void