PackageBox2D.Common.Math
Classpublic class b2Vec3
Sourceb2Vec3.as

A 2D column vector with 3 elements.



Public Properties
 PropertyDefined by
  x : Number
b2Vec3
  y : Number
b2Vec3
  z : Number
b2Vec3
Public Methods
 MethodDefined by
  
b2Vec3(x:Number = 0, y:Number = 0, z:Number = 0)
Construct using co-ordinates
b2Vec3
  
Add(v:b2Vec3):void
b2Vec3
  
b2Vec3
  
Multiply(a:Number):void
b2Vec3
  
Negate this vector
b2Vec3
  
Set(x:Number, y:Number, z:Number):void
Set this vector to some specified coordinates.
b2Vec3
  
SetV(v:b2Vec3):void
b2Vec3
  
SetZero():void
Sets this vector to all zeros
b2Vec3
  
Subtract(v:b2Vec3):void
b2Vec3
Property detail
xproperty
public var x:Number
yproperty 
public var y:Number
zproperty 
public var z:Number
Constructor detail
b2Vec3()constructor
public function b2Vec3(x:Number = 0, y:Number = 0, z:Number = 0)

Construct using co-ordinates

Parameters
x:Number (default = 0)
 
y:Number (default = 0)
 
z:Number (default = 0)
Method detail
Add()method
public function Add(v:b2Vec3):voidParameters
v:b2Vec3
Copy()method 
public function Copy():b2Vec3

Returns
b2Vec3
Multiply()method 
public function Multiply(a:Number):voidParameters
a:Number
Negative()method 
public function Negative():b2Vec3

Negate this vector

Returns
b2Vec3
Set()method 
public function Set(x:Number, y:Number, z:Number):void

Set this vector to some specified coordinates.

Parameters
x:Number
 
y:Number
 
z:Number
SetV()method 
public function SetV(v:b2Vec3):voidParameters
v:b2Vec3
SetZero()method 
public function SetZero():void

Sets this vector to all zeros

Subtract()method 
public function Subtract(v:b2Vec3):voidParameters
v:b2Vec3