pub fn rotation(input: &mut &str) -> ModalResult<Rotation>
Expand description
Parse as Rotation
§Examples
use havok_types::{Rotation, Vector4};
use serde_hkx::xml::de::parser::type_kind::rotation;
use winnow::Parser as _;
assert_eq!(rotation.parse("
(0.000000 0.000000 0.000000)
(-0.000000 0.000000 -0.000000)
(1.000000 1.000000 1.000000)
"), Ok(Rotation::new(
Vector4::default(),
Vector4::new(-0.0, 0.0, -0.0, 0.0),
Vector4::new(1.0, 1.0, 1.0, 0.0),
)));
§Errors
When parse failed.