View on
MetaCPAN
search.cpan.org is shutting down
For details read Perl NOC. After June 25th this page will redirect to MetaCPAN.org
Jeffrey T. Palmer > Box2D-0.07 > Box2D::b2RayCastInput

Download:
Box2D-0.07.tar.gz

Annotate this POD

View/Report Bugs
Source   Latest Release: Box2D-0.08

NAME ^

Box2D::b2RayCastInput - Ray-cast input data.

SYNOPSIS ^

  my $input = Box2D::b2RayCastInput->new();
  $input->p1( $p1 );
  $input->p2( $p2 );
  $input->maxFraction( $max_fraction );
  $shape->RayCast( $output, $input, $transform );

DESCRIPTION ^

Ray-cast input data. The ray extends from p1 to p1 + maxFraction * (p2 - p1).

METHODS ^

new()

Default constructor.

Returns a Box2D::b2RayCastInput

maxFraction()

maxFraction( $maxFraction )

Parameters:

Returns a float32

p1()

p1( $p1 )

Parameters:

Returns a Box2D::b2Vec2

p2()

p2( $p2 )

Parameters:

Returns a Box2D::b2Vec2

SEE ALSO ^

BUGS ^

See "BUGS" in Box2D

AUTHORS ^

See "AUTHORS" in Box2D

COPYRIGHT & LICENSE ^

See "COPYRIGHT & LICENSE" in Box2D

syntax highlighting: