Struct sfml::system::vector2::Vector2u
[−]
[src]
pub struct Vector2u { pub x: u32, pub y: u32, }
Implementation of Vector2u
Fields
x: u32
X coordinate of the vector.
y: u32
Y coordinate of the vector.
Methods
impl Vector2u
[src]
Trait Implementations
impl Copy for Vector2u
[src]
impl Debug for Vector2u
[src]
impl Eq for Vector2u
[src]
impl PartialEq for Vector2u
[src]
fn eq(&self, __arg_0: &Vector2u) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Vector2u) -> bool
This method tests for !=
.
impl Ord for Vector2u
[src]
fn cmp(&self, __arg_0: &Vector2u) -> Ordering
This method returns an Ordering
between self
and other
. Read more
impl PartialOrd for Vector2u
[src]
fn partial_cmp(&self, __arg_0: &Vector2u) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, __arg_0: &Vector2u) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, __arg_0: &Vector2u) -> 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: &Vector2u) -> bool
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, __arg_0: &Vector2u) -> bool
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl Clone for Vector2u
[src]
fn clone(&self) -> Vector2u
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 Add<u32> for Vector2u
[src]
type Output = Vector2u
The resulting type after applying the +
operator
fn add(self, rhs: u32) -> Vector2u
The method for the +
operator
impl Sub<u32> for Vector2u
[src]
type Output = Vector2u
The resulting type after applying the -
operator
fn sub(self, rhs: u32) -> Vector2u
The method for the -
operator
impl Mul<u32> for Vector2u
[src]
type Output = Vector2u
The resulting type after applying the *
operator
fn mul(self, rhs: u32) -> Vector2u
The method for the *
operator
impl Div<u32> for Vector2u
[src]
type Output = Vector2u
The resulting type after applying the /
operator
fn div(self, rhs: u32) -> Vector2u
The method for the /
operator
impl Add for Vector2u
[src]
type Output = Vector2u
The resulting type after applying the +
operator
fn add(self, rhs: Vector2u) -> Vector2u
The method for the +
operator
impl Sub for Vector2u
[src]
type Output = Vector2u
The resulting type after applying the -
operator
fn sub(self, rhs: Vector2u) -> Vector2u
The method for the -
operator
impl Mul for Vector2u
[src]
type Output = Vector2u
The resulting type after applying the *
operator
fn mul(self, rhs: Vector2u) -> Vector2u
The method for the *
operator
impl Div for Vector2u
[src]
type Output = Vector2u
The resulting type after applying the /
operator
fn div(self, rhs: Vector2u) -> Vector2u
The method for the /
operator
impl ToVec for Vector2u
[src]
fn to_vector2f(&self) -> Vector2f
Convert the current Vector2 to a Vector2f
fn to_vector2i(&self) -> Vector2i
Convert the current Vector2 to a Vector2i
fn to_vector2u(&self) -> Vector2u
Convert the current Vector2f to a Vector2u