Type Alias Matrix4

Source
pub type Matrix4 = Mat4;
Expand description

4x4 Matrix for transformations

Aliased Type§

#[repr(C)]
pub struct Matrix4 { pub x_axis: Vec4, pub y_axis: Vec4, pub z_axis: Vec4, pub w_axis: Vec4, }

Fields§

§x_axis: Vec4§y_axis: Vec4§z_axis: Vec4§w_axis: Vec4

Trait Implementations§

Source§

impl BinarySerializable for Matrix4

Source§

fn to_binary(&self) -> Result<Vec<u8>, Error>
where Self: Serialize,

Serialize to binary format
Source§

fn from_binary(data: &[u8]) -> Result<Self, Error>
where Self: DeserializeOwned,

Deserialize from binary format