pub fn matrix3(input: &mut &str) -> ModalResult<Matrix3>
Expand description
Parse as Matrix3
§Examples
use havok_types::{Matrix3, Vector4};
use serde_hkx::xml::de::parser::type_kind::matrix3;
use winnow::Parser as _;
assert_eq!(matrix3.parse("
(0.000000 0.000000 0.000000)
(-0.000000 0.000000 -0.000000)
(1.000000 1.000000 1.000000)
"), Ok(Matrix3::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.