Skip to main content

Module vm

Module vm 

Source
Expand description

Vector and Matrix

Functionsยง

a2af
Decompose radians into degrees, arcminutes, arcseconds, fraction.
a2tf
Decompose radians into hours, minutes, seconds, fraction.
af2a
Convert degrees, arcminutes, arcseconds to radians.
anp
Normalize angle into the range 0 <= a < 2pi.
anpm
Normalize angle into the range -pi <= a < +pi.
c2s
P-vector to spherical coordinates.
cp
Copy a p-vector.
cr
Copy an r-matrix.
d2tf
Decompose days to hours, minutes, seconds, fraction.
ir
Initialize an r-matrix to the identity matrix.
pdp
p-vector inner (=scalar=dot) product.
pm
Modulus of p-vector.
pmp
P-vector subtraction.
pn
Convert a p-vector into modulus and unit vector.
ppp
P-vector addition.
ppsp
P-vector plus scaled p-vector.
pv2s
Convert position/velocity from Cartesian to spherical coordinates.
pvu
Update a pv-vector.
pxp
p-vector outer (=vector=cross) product.
rx
Rotate an r-matrix about the x-axis.
rxp
Multiply a p-vector by an r-matrix.
rxpv
Multiply a pv-vector by an r-matrix.
rxr
Multiply two r-matrices.
ry
Rotate an r-matrix about the y-axis.
rz
Rotate an r-matrix about the z-axis.
s2c
Convert spherical coordinates to Cartesian.
s2pv
Convert position/velocity from spherical to Cartesian coordinates.
sepp
Angular separation between two p-vectors.
seps
Angular separation between two sets of spherical coordinates.
sxp
Multiply a p-vector by a scalar.
tf2a
tr
Transpose an r-matrix.
trxp
Multiply a p-vector by the transpose of an r-matrix.
trxpv
Multiply a pv-vector by the transpose of an r-matrix.
zp
Zero a p-vector.