Box2D::b2Transform - Contains translation and rotation.
my $transform = Box2D::b2Transform->new( $postiion, $rotation );
A transform contains translation and rotation. It is used to represent the position and orientation of rigid frames.
Initialize using a position vector and a rotation matrix.
Parameters:
Box2D::b2Vec2 $position
Box2D::b2Vec2
$position
Box2D::b2Mat22 $R
Box2D::b2Mat22
$R
Returns a Box2D::b2Transform
Box2D::b2Transform
Calculate the angle that the rotation matrix represents.
Returns a float32
float32
Set this based on the position and angle.
Box2D::b2Vec2 $p
$p
float32 $angle
$angle
Set this to the identity transform.
Box2D::b2Vec2 $position (optional)
Returns a Box2D::b2Vec2
Box2D::b2Mat22 $rotation (optional) - rotation matrix
$rotation
Returns a Box2D::b2Mat22
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.