Jeffrey T. Palmer > Box2D > Box2D::b2Transform

Download:
Box2D-0.07.tar.gz

Annotate this POD

View/Report Bugs
Source  

NAME ^

Box2D::b2Transform - Contains translation and rotation.

SYNOPSIS ^

  my $transform = Box2D::b2Transform->new( $postiion, $rotation );

DESCRIPTION ^

A transform contains translation and rotation. It is used to represent the position and orientation of rigid frames.

METHODS ^

new( $position, $R )

Initialize using a position vector and a rotation matrix.

Parameters:

Returns a Box2D::b2Transform

GetAngle()

Calculate the angle that the rotation matrix represents.

Returns a float32

Set( $p, $angle )

Set this based on the position and angle.

Parameters:

SetIdentity()

Set this to the identity transform.

position()

position( $position )

Parameters:

Returns a Box2D::b2Vec2

R()

R( $rotation )

Parameters:

Returns a Box2D::b2Mat22

SEE ALSO ^

BUGS ^

See "BUGS" in Box2D

AUTHORS ^

See "AUTHORS" in Box2D

COPYRIGHT & LICENSE ^

See "COPYRIGHT & LICENSE" in Box2D

syntax highlighting: