vec3D
A minimal 3D Vector library in Rust. Designed with a preference towards conventions from physics. Inspired by the CLHEP Hep3Vector class.
Conventions
This module uses the convention for describing spherical coordinates as used in the physics community as follows:
- r - radial distance
- theta - polar angle
- phi - azimuthal angle
And cylindrical coordinates:
- r - radial distance
- phi - angle
- z - height along z-axis
All angles are in radians.
Examples
use Vec3D;
License
This project is licensed under the MIT license (LICENSE or http://opensource.org/licenses/MIT)