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
Box2D::b2Vec2
Construct using coordinates.
Parameters:
float32 $x
float32
$x
float32 $y
$y
Does this vector contain finite coordinates?
Returns a bool
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).
Convert this vector into a unit vector. Returns the length.
Set this vector to some specified coordinates.
Set this vector to all zeros.
float32 $x (optional)
float32 $y (optional)
Box2D
See "BUGS" in Box2D
See "AUTHORS" in Box2D
See "COPYRIGHT & LICENSE" in Box2D
To install Box2D, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Box2D
CPAN shell
perl -MCPAN -e shell install Box2D
For more information on module installation, please visit the detailed CPAN module installation guide.