Crate oxygen_quark
source ·Expand description
Summary
Oxygen Quark is a maths library primarily aimed for the Oxygen game engine. Use for it in any other project is allowed and encouraged.
- It holds parts of linear algebra: square matrices along two-dimensional and three-dimensional vectors.
- It is also containing a
Fraction
data-type to allow for more precise calculations when floating-point is proven inaccurate. - The last part is the imaginary part, holding
Quaternion
as well asComplex
data-types, one for three-dimensional rotations and the other for mathematical completeness.
Vector
The module containing the implementation details for Vector2d
and Vector3d
.
Matrix
This module holds the implementations of Matrix2x2
, Matrix3x3
and Matrix4x4
.
Imaginary
This module contains Complex
and Quaternion
implementations.
Fraction
This module yields the implementation for Fraction
.
Re-exports
pub use imaginary::complex::Complex;
pub use imaginary::quaternion::Quaternion;
pub use matrix::matrix2x2::Matrix2x2;
pub use matrix::matrix3x3::Matrix3x3;
pub use matrix::matrix4x4::Matrix4x4;
pub use vector::vector2d::Vector2D;
pub use vector::vector3d::Vector3D;
pub use fraction::Fraction;
pub use colour::Colour;