siege-math 0.5.1

Math library for the Siege Engine
Documentation
1
2
3
4
5
6
7
8
9
10
11
12

use {Point3, NQuat};

/// A position is a combination of a point and an orientation
///
/// Orientation is more than just a facing vector, it must also resolve
/// which way is up, but does not need yet another vector for that. It
/// turns out a (normalized) Quaterion fits the role perfectly.
pub struct Position<F> {
    pub point: Point3<F>,
    pub ori: NQuat<F>,
}