11 May 2019 19:24:26 UTC
- Distribution: Panotools-Script
- Source (raw)
- Browse (raw)
- How to Contribute
- Issues (2)
- Testers (401 / 0 / 0)
- KwaliteeBus factor: 0
- 67.49% Coverage
- License: unknown
- Activity24 month
- Download (160.4KB)
- MetaCPAN Explorer
- Subscribe to distribution
- This version
- Latest version++ed by:1 non-PAUSE userBPOSTLE Bruno Postle
Panotools::Matrix - Miscellaneous math for panoramic images
$matrix = rollpitchyaw2matrix ($roll, $pitch, $yaw);
All angles are in radians not degrees.
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
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->, $result->, $result->);
Module Install Instructions
To install Panotools::Script, copy and paste the appropriate command in to your terminal.
perl -MCPAN -e shell install Panotools::Script
For more information on module installation, please visit the detailed CPAN module installation guide.