This reference describes unreleased code on main; no release documents it yet.

rlmesh::adapters::Rotation

structPreviewuse rlmesh::adapters::Rotation;[source]

A literal rotation, authored as a model state part's post_rotate.

struct Rotation

encoding

field[source]
encoding: RotationEncoding

Rotation encoding value is written in.

value

field[source]
value: Vec<f64>

The rotation’s components in that encoding.

new

associated function[source]
fn new(encoding: RotationEncoding, value: impl Into<Vec<f64>>) -> Self

Construct a rotation from components in the given encoding.

from_matrix

associated function[source]
fn from_matrix(rows: [[f64; 3]; 3]) -> Self

Use a matrix’s first two columns as a rot6d literal.

Trait implementations

  • impl Display for Rotation
  • impl Clone for Rotation
  • impl Debug for Rotation
  • impl StructuralPartialEq for Rotation
  • impl PartialEq for Rotation
  • impl Serialize for Rotation
  • impl<'de> Deserialize<'de> for Rotation