ireko/src/quat.rs

28 lines
483 B
Rust
Raw Normal View History

2025-03-02 14:28:22 -05:00
use binrw::binrw;
use crate::structs::PropertyBase;
#[binrw]
#[derive(Debug)]
pub struct QuatStruct {
// TODO: check if w is actually in front or in the back, this is a guess
pub w: f32,
pub x: f32,
pub y: f32,
pub z: f32,
}
impl PropertyBase for QuatStruct {
fn type_name() -> &'static str {
"StructProperty"
}
fn struct_name() -> Option<&'static str> {
Some("Quat")
}
fn size_in_bytes(&self) -> u32 {
16
}
}