ciri 0.1.0

Simple game engine using three-d
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use crate::structs::vec3::Vec3;

#[derive(Debug)]
pub struct Transform {
    pub position: Vec3,
    pub rotation: Vec3,
    pub scale: Vec3,
}

impl Transform {
    pub fn new(position: Vec3, rotation: Vec3, scale: Vec3) -> Self {
        Self { position, rotation, scale }
    }
}