
Box2D::b2Vec2 - A 2D column vector.

my $v = Box2D::b2Vec2->new( $x, $y );

A 2D column vector.

Default constructor does nothing.
Returns a Box2D::b2Vec2
Construct using coordinates.
Parameters:
float32 $xfloat32 $yDoes this vector contain finite coordinates?
Returns a bool
Get the length of this vector (the norm).
Returns a float32
Get the length squared. For performance, use this instead of b2Vec2::Length (if possible).
Returns a float32
Convert this vector into a unit vector. Returns the length.
Returns a float32
Set this vector to some specified coordinates.
Parameters:
float32 $xfloat32 $ySet this vector to all zeros.
Parameters:
float32 $x (optional)Returns a float32
Parameters:
float32 $y (optional)Returns a float32


See "BUGS" in Box2D

