W3cubDocs

/Haxe Flash

Vector3D

package flash.geom

@:require(flash10) Available on flash

Constructor

@:value({ w : 0, z : 0, y : 0, x : 0 }) 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

@:require(flash11) copyFrom (sourceVector3D:Vector3D):Void

crossProduct (a:Vector3D):Vector3D

decrementBy (a:Vector3D):Void

dotProduct (a:Vector3D):Float

@:value({ allFour : false }) equals (toCompare:Vector3D, allFour:Bool = false):Bool

incrementBy (a:Vector3D):Void

@:value({ allFour : false }) nearEquals (toCompare:Vector3D, tolerance:Float, allFour:Bool = false):Bool

negate ():Void

normalize ():Float

project ():Void

scaleBy (s:Float):Void

@:require(flash11) 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–2018 Haxe Foundation
Licensed under a MIT license.
https://api.haxe.org/flash/geom/Vector3D.html