PackageBox2D.Common.Math
Classpublic class b2Vec2
Inheritanceb2Vec2 Inheritance Object



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
  
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):void

Parameters

v:b2Vec2

Copy()method 
public function Copy():b2Vec2

Returns
b2Vec2
CrossFV()method 
public function CrossFV(s:Number):void

Parameters

s:Number

CrossVF()method 
public function CrossVF(s:Number):void

Parameters

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):b2Vec2

Parameters

x_:Number
 
y_:Number

Returns
b2Vec2
MaxV()method 
public function MaxV(b:b2Vec2):void

Parameters

b:b2Vec2

MinV()method 
public function MinV(b:b2Vec2):void

Parameters

b:b2Vec2

MulM()method 
public function MulM(A:b2Mat22):void

Parameters

A:b2Mat22

Multiply()method 
public function Multiply(a:Number):void

Parameters

a:Number

MulTM()method 
public function MulTM(A:b2Mat22):void

Parameters

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):void

Parameters

x_:Number (default = 0)
 
y_:Number (default = 0)

SetV()method 
public function SetV(v:b2Vec2):void

Parameters

v:b2Vec2

SetZero()method 
public function SetZero():void

Subtract()method 
public function Subtract(v:b2Vec2):void

Parameters

v:b2Vec2