1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
//! This crate implements all the basic mathematical structures and operations
//! that are needed for almost any graphical program, namely:
//! - [`Vec2`]
//! - [`Vec3`]
//! - [`Vec4`]
//! - [`Quaternion`]
//! - [`Mat4`]
//!
//! The usual operations are implemented via member functions and operator overloads.
//! Operators should handle almost exactly as they would in GLSL, e.g.
//! ```
//! use gfx_maths::*;
//!
//! let v = Vec3::new(5.0, 6.0, 7.0);
//! let s = 1.0 / v;
//!
//! let t = Mat4::translate(Vec3::new(1.0, 0.0, 0.0)) * s;
//! ```
//!
//! # Notation
//! Vectors are always treated as column vectors, which is why
//! only [`Mat4`] * [`Vec4`] is implemented and not [`Vec4`] * [`Mat4`].
// Used to make docs.rs more readable
pub use *;
pub use *;
pub use *;
pub use *;
pub use *;