Struct footile::Vec3
[−]
[src]
pub struct Vec3 { pub x: f32, pub y: f32, pub z: f32, }
3-dimensional vector
Fields
x: f32
y: f32
z: f32
Methods
impl Vec3
[src]
fn new(x: f32, y: f32, z: f32) -> Self
[src]
Create a new Vec3
fn midpoint(self, other: Self) -> Self
[src]
Find the midpoint between two Vec3
Trait Implementations
impl Clone for Vec3
[src]
fn clone(&self) -> Vec3
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Copy for Vec3
[src]
impl PartialEq for Vec3
[src]
fn eq(&self, __arg_0: &Vec3) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Vec3) -> bool
[src]
This method tests for !=
.