| 1 | Source: libmath-vector-real-perl |
| 2 | Maintainer: Debian Perl Group <[email protected]> |
| 3 | Uploaders: gregor herrmann <[email protected]> |
| 4 | Section: perl |
| 5 | Testsuite: autopkgtest-pkg-perl |
| 6 | Priority: optional |
| 7 | Build-Depends: debhelper-compat (= 13) |
| 8 | Build-Depends-Indep: perl |
| 9 | Standards-Version: 4.1.3 |
| 10 | Vcs-Browser: https://salsa.debian.org/perl-team/modules/packages/libmath-vector-real-perl |
| 11 | Vcs-Git: https://salsa.debian.org/perl-team/modules/packages/libmath-vector-real-perl.git |
| 12 | Homepage: https://metacpan.org/release/Math-Vector-Real |
| 13 | |
| 14 | Package: libmath-vector-real-perl |
| 15 | Architecture: all |
| 16 | Depends: ${misc:Depends}, |
| 17 | ${perl:Depends} |
| 18 | Multi-Arch: foreign |
| 19 | Description: Perl module for real number vector arithmetic |
| 20 | Math::Vector::Real is a pure Perl module to manipulate vectors of |
| 21 | any dimension. |
| 22 | . |
| 23 | The function V, always exported by the module, allows one to create new |
| 24 | vectors: |
| 25 | . |
| 26 | $v = V(0, 1, 3, -1); |
| 27 | . |
| 28 | Vectors are represented as blessed array references. It is allowed to |
| 29 | manipulate the arrays directly as far as only real numbers are inserted |
| 30 | (well, actually, integers are also allowed because from a mathematical point |
| 31 | of view, integers are a subset of the real numbers). |
| 32 | . |
| 33 | Vectors can be used in mathematical expressions, the currently supported |
| 34 | operations are: |
| 35 | . |
| 36 | . + * / |
| 37 | . - (both unary and binary) |
| 38 | . x (cross product for 3D vectors) |
| 39 | . += -= *= /= x= |
| 40 | . == != |
| 41 | . "" (stringfication) |
| 42 | . abs (returns the norm) |
| 43 | . atan2 (returns the angle between two vectors) |
| 44 | . |
| 45 | When an array reference is used in an operation involving a vector, it is |
| 46 | automatically upgraded to a vector. |