NAME
Panotools::Matrix - Miscellaneous math for panoramic images
SYNOPSIS
$matrix = rollpitchyaw2matrix ($roll, $pitch, $yaw);
All angles are in radians not degrees.
DESCRIPTION
rollpitchyaw2matrix returns a Math::Matrix object that encapsulates a transformation suitable for rotating a vector/point by three degrees of freedom (roll, pitch and yaw).
roll is positive rotation around the x-axis
pitch is negative rotation around the y-axis
yaw is negative rotation around the z axis
USAGE
use Math::Matrix;
use Panotools::Matrix;
my $point = new Math::Matrix ([$x1], [$y1], [$z1]);
my $matrix = rollpitchyaw2matrix ($roll, $pitch, $yaw);
my $result = $matrix->multiply ($point);
($x2, $y2, $z2) = ($result->[0][0], $result->[1][0], $result->[2][0]);
FILES
Requires Math::Matrix as this is all matrix mathematics.
COPYRIGHT
Copyright (c) 2001 Bruno Postle <bruno@postle.net>. All Rights Reserved. This module is Free Software. It may be used, redistributed and/or modified under the same terms as Perl itself.
This module is partly based on Math::Geometry by Greg McCarroll <greg@mccarroll.demon.co.uk>