kos_sys/dc/
vector.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Rust for KallistiOS/Dreamcast
// Copyright (C) 2024 Eric Fradella
// https://dreamcast.rs/

use crate::prelude::*;

#[repr(C, align(8))]
pub struct matrix_t(pub [[f32; 4]; 4]);

#[repr(C)]
pub struct vector_t {
    pub x:  c_float,
    pub y:  c_float,
    pub z:  c_float,
    pub w:  c_float,
}

pub type point_t = vector_t;