Struct onyx::math::Vec3
[−]
[src]
pub struct Vec3<R: Real = f32> { pub x: R, pub y: R, pub z: R, }
Fields
x: R
y: R
z: R
Methods
impl<R: Real> Vec3<R>
[src]
fn new(x: R, y: R, z: R) -> Self
impl<R: Real> Vec3<R>
[src]
fn zero() -> Self
Trait Implementations
impl<R: Copy + Real> Copy for Vec3<R>
[src]
impl<R: Clone + Real> Clone for Vec3<R>
[src]
fn clone(&self) -> Vec3<R>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl<R: Debug + Real> Debug for Vec3<R>
[src]
impl<R: PartialEq + Real> PartialEq for Vec3<R>
[src]
fn eq(&self, __arg_0: &Vec3<R>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Vec3<R>) -> bool
This method tests for !=
.
impl<R: Real> Add<Self> for Vec3<R>
[src]
type Output = Self
The resulting type after applying the +
operator
fn add(self, other: Self) -> Self::Output
The method for the +
operator
impl<R: Real> AddAssign<Self> for Vec3<R>
[src]
fn add_assign(&mut self, other: Self)
The method for the +=
operator
impl<R: Real> Sub<Self> for Vec3<R>
[src]
type Output = Self
The resulting type after applying the -
operator
fn sub(self, other: Self) -> Self::Output
The method for the -
operator
impl<R: Real> SubAssign<Self> for Vec3<R>
[src]
fn sub_assign(&mut self, other: Self)
The method for the -=
operator
impl<R: Real> Mul<R> for Vec3<R>
[src]
type Output = Self
The resulting type after applying the *
operator
fn mul(self, other: R) -> Self::Output
The method for the *
operator