Struct wkwrap::vec::Vec3
[−]
[src]
pub struct Vec3 { pub x: u32, pub y: u32, pub z: u32, }
Fields
x: u32
y: u32
z: u32
Methods
impl Vec3
[src]
pub fn is_zero(&self) -> bool
[src]
pub fn product(&self) -> u64
[src]
pub fn elem_max(&self, other: Vec3) -> Vec3
[src]
pub fn elem_min(&self, other: Vec3) -> Vec3
[src]
Trait Implementations
impl<'a> From<&'a Vec3> for Morton
[src]
impl From<Morton> for Vec3
[src]
impl Copy for Vec3
[src]
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 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 !=
.
impl Debug for Vec3
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl From<Vec3> for Box3
[src]
impl Add<Vec3> for Vec3
[src]
type Output = Vec3
The resulting type after applying the +
operator.
fn add(self, rhs: Vec3) -> Vec3
[src]
Performs the +
operation.
impl Add<u32> for Vec3
[src]
type Output = Vec3
The resulting type after applying the +
operator.
fn add(self, rhs: u32) -> Vec3
[src]
Performs the +
operation.
impl Add<Vec3> for Box3
[src]
type Output = Box3
The resulting type after applying the +
operator.
fn add(self, rhs: Vec3) -> Box3
[src]
Performs the +
operation.
impl Sub<Vec3> for Vec3
[src]
type Output = Vec3
The resulting type after applying the -
operator.
fn sub(self, rhs: Vec3) -> Vec3
[src]
Performs the -
operation.
impl Sub<u32> for Vec3
[src]
type Output = Vec3
The resulting type after applying the -
operator.
fn sub(self, rhs: u32) -> Vec3
[src]
Performs the -
operation.
impl Sub<Vec3> for Box3
[src]
type Output = Box3
The resulting type after applying the -
operator.
fn sub(self, rhs: Vec3) -> Box3
[src]
Performs the -
operation.
impl Mul<Vec3> for Vec3
[src]
type Output = Vec3
The resulting type after applying the *
operator.
fn mul(self, rhs: Vec3) -> Vec3
[src]
Performs the *
operation.
impl Mul<u32> for Vec3
[src]
type Output = Vec3
The resulting type after applying the *
operator.
fn mul(self, rhs: u32) -> Vec3
[src]
Performs the *
operation.
impl Mul<Vec3> for Box3
[src]
type Output = Box3
The resulting type after applying the *
operator.
fn mul(self, rhs: Vec3) -> Box3
[src]
Performs the *
operation.
impl Div<Vec3> for Vec3
[src]
type Output = Vec3
The resulting type after applying the /
operator.
fn div(self, rhs: Vec3) -> Vec3
[src]
Performs the /
operation.
impl Div<u32> for Vec3
[src]
type Output = Vec3
The resulting type after applying the /
operator.
fn div(self, rhs: u32) -> Vec3
[src]
Performs the /
operation.
impl Div<Vec3> for Box3
[src]
type Output = Box3
The resulting type after applying the /
operator.
fn div(self, rhs: Vec3) -> Box3
[src]
Performs the /
operation.
impl Rem<Vec3> for Vec3
[src]
type Output = Vec3
The resulting type after applying the %
operator.
fn rem(self, rhs: Vec3) -> Vec3
[src]
Performs the %
operation.
impl Rem<u32> for Vec3
[src]
type Output = Vec3
The resulting type after applying the %
operator.
fn rem(self, rhs: u32) -> Vec3
[src]
Performs the %
operation.
impl Rem<Vec3> for Box3
[src]
type Output = Box3
The resulting type after applying the %
operator.
fn rem(self, rhs: Vec3) -> Box3
[src]
Performs the %
operation.
impl Shl<Vec3> for Vec3
[src]
type Output = Vec3
The resulting type after applying the <<
operator.
fn shl(self, rhs: Vec3) -> Vec3
[src]
Performs the <<
operation.
impl Shl<u32> for Vec3
[src]
type Output = Vec3
The resulting type after applying the <<
operator.
fn shl(self, rhs: u32) -> Vec3
[src]
Performs the <<
operation.
impl Shl<Vec3> for Box3
[src]
type Output = Box3
The resulting type after applying the <<
operator.
fn shl(self, rhs: Vec3) -> Box3
[src]
Performs the <<
operation.
impl Shr<Vec3> for Vec3
[src]
type Output = Vec3
The resulting type after applying the >>
operator.
fn shr(self, rhs: Vec3) -> Vec3
[src]
Performs the >>
operation.
impl Shr<u32> for Vec3
[src]
type Output = Vec3
The resulting type after applying the >>
operator.
fn shr(self, rhs: u32) -> Vec3
[src]
Performs the >>
operation.
impl Shr<Vec3> for Box3
[src]
type Output = Box3
The resulting type after applying the >>
operator.
fn shr(self, rhs: Vec3) -> Box3
[src]
Performs the >>
operation.
impl From<u32> for Vec3
[src]
impl PartialOrd for Vec3
[src]
fn partial_cmp(&self, rhs: &Vec3) -> Option<Ordering>
[src]
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more