siege_math/position.rs
1
2use {Point3, NQuat};
3
4/// A position is a combination of a point and an orientation
5///
6/// Orientation is more than just a facing vector, it must also resolve
7/// which way is up, but does not need yet another vector for that. It
8/// turns out a (normalized) Quaterion fits the role perfectly.
9pub struct Position<F> {
10 pub point: Point3<F>,
11 pub ori: NQuat<F>,
12}