The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

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:

  • float32 $maxFraction (optional)

Returns a float32

p1()

p1( $p1 )

Parameters:

  • Box2D::b2Vec2 $p1 (optional)

Returns a Box2D::b2Vec2

p2()

p2( $p2 )

Parameters:

  • Box2D::b2Vec2 $p2 (optional)

Returns a Box2D::b2Vec2

SEE ALSO

BUGS

See "BUGS" in Box2D

AUTHORS

See "AUTHORS" in Box2D

COPYRIGHT & LICENSE

See "COPYRIGHT & LICENSE" in Box2D