PackageBox2D.Common.Math
Classpublic class b2Vec2
Sourceb2Vec2.as

A 2D column vector.



Public Properties
 PropertyDefined by
  x : Number
b2Vec2
  y : Number
b2Vec2
Public Methods
 MethodDefined by
  
b2Vec2(x_:Number = 0, y_:Number = 0)
b2Vec2
  
Abs():void
b2Vec2
  
Add(v:b2Vec2):void
b2Vec2
  
b2Vec2
  
CrossFV(s:Number):void
b2Vec2
  
CrossVF(s:Number):void
b2Vec2
  
IsValid():Boolean
b2Vec2
  
Length():Number
b2Vec2
  
LengthSquared():Number
b2Vec2
  
Make(x_:Number, y_:Number):b2Vec2
[static]
b2Vec2
  
MaxV(b:b2Vec2):void
b2Vec2
  
MinV(b:b2Vec2):void
b2Vec2
  
MulM(A:b2Mat22):void
b2Vec2
  
Multiply(a:Number):void
b2Vec2
  
MulTM(A:b2Mat22):void
b2Vec2
  
b2Vec2
  
Normalize():Number
b2Vec2
  
Set(x_:Number = 0, y_:Number = 0):void
b2Vec2
  
SetV(v:b2Vec2):void
b2Vec2
  
SetZero():void
b2Vec2
  
Subtract(v:b2Vec2):void
b2Vec2
Property detail
xproperty
public var x:Number
yproperty 
public var y:Number
Constructor detail
b2Vec2()constructor
public function b2Vec2(x_:Number = 0, y_:Number = 0)Parameters
x_:Number (default = 0)
 
y_:Number (default = 0)
Method detail
Abs()method
public function Abs():void
Add()method 
public function Add(v:b2Vec2):voidParameters
v:b2Vec2
Copy()method 
public function Copy():b2Vec2

Returns
b2Vec2
CrossFV()method 
public function CrossFV(s:Number):voidParameters
s:Number
CrossVF()method 
public function CrossVF(s:Number):voidParameters
s:Number
IsValid()method 
public function IsValid():Boolean

Returns
Boolean
Length()method 
public function Length():Number

Returns
Number
LengthSquared()method 
public function LengthSquared():Number

Returns
Number
Make()method 
public static function Make(x_:Number, y_:Number):b2Vec2Parameters
x_:Number
 
y_:Number

Returns
b2Vec2
MaxV()method 
public function MaxV(b:b2Vec2):voidParameters
b:b2Vec2
MinV()method 
public function MinV(b:b2Vec2):voidParameters
b:b2Vec2
MulM()method 
public function MulM(A:b2Mat22):voidParameters
A:b2Mat22
Multiply()method 
public function Multiply(a:Number):voidParameters
a:Number
MulTM()method 
public function MulTM(A:b2Mat22):voidParameters
A:b2Mat22
Negative()method 
public function Negative():b2Vec2

Returns
b2Vec2
Normalize()method 
public function Normalize():Number

Returns
Number
Set()method 
public function Set(x_:Number = 0, y_:Number = 0):voidParameters
x_:Number (default = 0)
 
y_:Number (default = 0)
SetV()method 
public function SetV(v:b2Vec2):voidParameters
v:b2Vec2
SetZero()method 
public function SetZero():void
Subtract()method 
public function Subtract(v:b2Vec2):voidParameters
v:b2Vec2