struct
Vec3
pub struct Vec3 {
pub x: f32,
pub y: f32,
pub z: f32,
}A 3D vector: a point or direction.
Fields
Methods
normalize
pub fn normalize(self) -> Vec3Unit vector in the same direction; the zero vector stays zero.
struct
pub struct Vec3 {
pub x: f32,
pub y: f32,
pub z: f32,
}A 3D vector: a point or direction.
pub fn normalize(self) -> Vec3Unit vector in the same direction; the zero vector stays zero.