Module geometry

Source
Expand description

Collection of functions for geometry computations.

Functionsยง

cart_to_sph
Convert a list of Vectors from cartesian to spherical coordinates.
direct_angle
Compute the direct angle from 0 to 2 PI between two vectors and an upward vector.
direction
Direction from a Vector to another one.
directions
Directions from of a list of Vectors to another one.
distance
Distance from a Vector to another one.
distances
Distances from of a list of Vectors to another one.
dot_products
Dot product component-wise between two lists of Vectors.
magnitudes
Magnitudes of a list of Vectors.
projection_plane
Project the first Vector onto the plane described the second Vector (normal of the plane).
projection_vector
Project the first Vector onto the second one.
units
Unit vectors of a list of Vectors.