1Panotools::Matrix(3)  User Contributed Perl Documentation Panotools::Matrix(3)
2
3
4

NAME

6       Panotools::Matrix - Miscellaneous math for panoramic images
7

SYNOPSIS

9       $matrix = rollpitchyaw2matrix ($roll, $pitch, $yaw);
10
11       All angles are in radians not degrees.
12

DESCRIPTION

14       rollpitchyaw2matrix returns a matrix arrayref that encapsulates a
15       transformation suitable for rotating a vector/point by three degrees of
16       freedom (roll, pitch and yaw).
17
18       roll is positive rotation around the x-axis
19
20       pitch is negative rotation around the y-axis
21
22       yaw is negative rotation around the z axis
23

USAGE

25       use Panotools::Matrix qw(matrix2rollpitchyaw rollpitchyaw2matrix
26       multiply);
27
28       my $point  = [[$x1], [$y1], [$z1]];
29
30       my $matrix = rollpitchyaw2matrix ($roll, $pitch, $yaw);
31
32       my $result = multiply ($matrix, $point);
33
34       ($x2, $y2, $z2) = ($result->[0][0], $result->[1][0], $result->[2][0]);
35
36
37
38perl v5.30.0                      2019-07-26              Panotools::Matrix(3)
Impressum