effect_core/primitives/
vector.rs

1use num::Float;
2
3#[derive(Debug, Clone, Copy)]
4pub struct Vector3<T>
5where
6    T: Float,
7{
8    pub x: T,
9    pub y: T,
10    pub z: T,
11}
12
13impl<T> Vector3<T>
14where
15    T: Float,
16{
17    pub fn new(x: T, y: T, z: T) -> Self {
18        Self { x, y, z }
19    }
20}