Struct sfml_types::Vector3
[−]
[src]
#[repr(C)]pub struct Vector3<T> { pub x: T, pub y: T, pub z: T, }
Vector3f definition
Fields
x: T
X coordinate of the vector.
y: T
Y coordinate of the vector.
z: T
Z coordinate of the vector.
Methods
impl<T> Vector3<T>
[src]
Trait Implementations
impl<T: Clone> Clone for Vector3<T>
[src]
fn clone(&self) -> Vector3<T>
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<T: PartialOrd> PartialOrd for Vector3<T>
[src]
fn partial_cmp(&self, __arg_0: &Vector3<T>) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, __arg_0: &Vector3<T>) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, __arg_0: &Vector3<T>) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, __arg_0: &Vector3<T>) -> bool
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, __arg_0: &Vector3<T>) -> bool
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl<T: PartialEq> PartialEq for Vector3<T>
[src]
fn eq(&self, __arg_0: &Vector3<T>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Vector3<T>) -> bool
This method tests for !=
.
impl<T: Debug> Debug for Vector3<T>
[src]
impl<T: Copy> Copy for Vector3<T>
[src]
impl<T: Add + Copy> Add<T> for Vector3<T>
[src]
type Output = Vector3<T::Output>
The resulting type after applying the +
operator
fn add(self, rhs: T) -> Vector3<T::Output>
The method for the +
operator
impl<T: Sub + Copy> Sub<T> for Vector3<T>
[src]
type Output = Vector3<T::Output>
The resulting type after applying the -
operator
fn sub(self, rhs: T) -> Vector3<T::Output>
The method for the -
operator
impl<T: Mul + Copy> Mul<T> for Vector3<T>
[src]
type Output = Vector3<T::Output>
The resulting type after applying the *
operator
fn mul(self, rhs: T) -> Vector3<T::Output>
The method for the *
operator
impl<T: Div + Copy> Div<T> for Vector3<T>
[src]
type Output = Vector3<T::Output>
The resulting type after applying the /
operator
fn div(self, rhs: T) -> Vector3<T::Output>
The method for the /
operator
impl<T: Add> Add for Vector3<T>
[src]
type Output = Vector3<T::Output>
The resulting type after applying the +
operator
fn add(self, rhs: Vector3<T>) -> Vector3<T::Output>
The method for the +
operator
impl<T: Sub> Sub for Vector3<T>
[src]
type Output = Vector3<T::Output>
The resulting type after applying the -
operator
fn sub(self, rhs: Vector3<T>) -> Vector3<T::Output>
The method for the -
operator
impl<T: Mul> Mul for Vector3<T>
[src]
type Output = Vector3<T::Output>
The resulting type after applying the *
operator
fn mul(self, rhs: Vector3<T>) -> Vector3<T::Output>
The method for the *
operator