coordinates

Useful coordinate related functions.

Functions

cart_to_sph(vec[, degrees])

Convert from Cartesian coordinates (east, north, up) to Spherical coordinates (azimuth, elevation, range) in a angle east of north and elevation fashion.

rot_mat_2d(theta[, dtype, degrees])

Matrix for rotation of R2 vector in the plane through angle theta For frame rotation, use the transpose.

rot_mat_x(theta[, dtype, degrees])

Compute matrix for rotation of R3 vector through angle theta around the X-axis.

rot_mat_y(theta[, dtype, degrees])

Compute matrix for rotation of R3 vector through angle theta around the Y-axis.

rot_mat_z(theta[, dtype, degrees])

Compute matrix for rotation of R3 vector through angle theta around the Z-axis.

scale_mat_2d(x, y)

Matrix for 2d scaling.

sph_to_cart(vec[, degrees])

Convert from spherical coordinates (azimuth, elevation, range) to Cartesian (east, north, up) in a angle east of north and elevation fashion.

vector_angle(a, b[, degrees])

Angle between two vectors.