Box2D::b2Mat22 - A 2-by-2 matrix.
my $matrix = Box2D::b2Mat22->new( $a11, $a12, $a21, $a22 );
A 2-by-2 matrix. Stored in column-major order.
Construct this matrix using scalars.
Parameters:
float32 $a11
float32
$a11
float32 $a12
$a12
float32 $a21
$a21
float32 $a22
$a22
Extract the angle from this matrix (assumed to be a rotation matrix).
Returns a float32
Returns a Box2D::b2Mat22
Box2D::b2Mat22
Initialize this matrix using columns.
Box2D::b2Vec2 $c1
Box2D::b2Vec2
$c1
Box2D::b2Vec2 $c2
$c2
Set this to the identity matrix.
Set this matrix to all zeros.
Box2D::b2Vec2 $col1 (optional)
$col1
Returns a Box2D::b2Vec2
Box2D::b2Vec2 $col2 (optional)
$col2
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.