Skip to content

Instantly share code, notes, and snippets.

@jimblandy
Created September 22, 2017 03:39
Show Gist options
  • Select an option

  • Save jimblandy/c38d1bd6b3291f016dfa84659a73d1d4 to your computer and use it in GitHub Desktop.

Select an option

Save jimblandy/c38d1bd6b3291f016dfa84659a73d1d4 to your computer and use it in GitHub Desktop.
SICM 2nd ed. 1.2
/// https://en.wikipedia.org/wiki/Euler_angles
struct EulerAngle3<R> { α: R, β: R, γ: R }
struct Point<R> { x: R, y: R, z: R }
struct Pin<R> {
/// The location of the pin's center of gravity.
center: Point<R>,
/// The angle with the positive Z axis of some distinguished point
/// on the pin that is off the pin's axis of symmetry.
orientation: EulerAngle3<R>
}
type System<R> = [Pin<R>; 6];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment