1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use super::Vector3;
use binrw::BinRead;

#[derive(Debug, PartialEq, BinRead, Clone)]
pub struct Quaternion {
    pub w: f32,
    pub x: f32,
    pub y: f32,
    pub z: f32,
}

#[derive(Debug, PartialEq, BinRead, Clone)]
pub struct NiQuatTransform {
    pub translation: Vector3,
    pub rotation: Quaternion,
    pub scale: f32,
}