Rechercher une page de manuel
Panotools::Matrix.3pm
Langue: en
Version: 2008-03-12 (fedora - 05/07/09)
Section: 3 (Bibliothèques de fonctions)
Sommaire
NAME
Panotools::Matrix - Miscellaneous math for panoramic imagesSYNOPSIS
$matrix = rollpitchyaw2matrix ($roll, $pitch, $yaw);All angles are in radians not degrees.
DESCRIPTION
rollpitchyaw2matrix returns a matrix arrayref 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 Panotools::Matrix qw(matrix2rollpitchyaw rollpitchyaw2matrix multiply);my $point = [[$x1], [$y1], [$z1]];
my $matrix = rollpitchyaw2matrix ($roll, $pitch, $yaw);
my $result = multiply ($matrix, $point);
($x2, $y2, $z2) = ($result->[0][0], $result->[1][0], $result->[2][0]);
Contenus ©2006-2024 Benjamin Poulain
Design ©2006-2024 Maxime Vantorre