W3cubDocs

/Haxe Flash

Vector3D

package flash.geom

Available on flash

Constructor

new (x:Float = 0, y:Float = 0, z:Float = 0, w:Float = 0)

Variables

read only length:Float

read only lengthSquared:Float

w:Float

x:Float

y:Float

z:Float

Methods

add (a:Vector3D):Vector3D

clone ():Vector3D

copyFrom (sourceVector3D:Vector3D):Void

crossProduct (a:Vector3D):Vector3D

decrementBy (a:Vector3D):Void

dotProduct (a:Vector3D):Float

equals (toCompare:Vector3D, allFour:Bool = false):Bool

incrementBy (a:Vector3D):Void

nearEquals (toCompare:Vector3D, tolerance:Float, allFour:Bool = false):Bool

negate ():Void

normalize ():Float

project ():Void

scaleBy (s:Float):Void

setTo (xa:Float, ya:Float, za:Float):Void

subtract (a:Vector3D):Vector3D

toString ():String

Static variables

static read only X_AXIS:Vector3D

static read only Y_AXIS:Vector3D

static read only Z_AXIS:Vector3D

Static methods

static angleBetween (a:Vector3D, b:Vector3D):Float

static distance (pt1:Vector3D, pt2:Vector3D):Float

© 2005–2016 Haxe Foundation
Licensed under a MIT license.
http://api.haxe.org/flash/geom/Vector3D.html