Struct sfml_types::Vector2 [] [src]

#[repr(C)]
pub struct Vector2<T> { pub x: T, pub y: T, }

Implementation of Vector2i

Fields

X coordinate of the vector.

Y coordinate of the vector.

Methods

impl<T> Vector2<T>
[src]

Build a new Vector2

Trait Implementations

impl<T: Clone> Clone for Vector2<T>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<T: PartialOrd> PartialOrd for Vector2<T>
[src]

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl<T: Ord> Ord for Vector2<T>
[src]

This method returns an Ordering between self and other. Read more

impl<T: PartialEq> PartialEq for Vector2<T>
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl<T: Eq> Eq for Vector2<T>
[src]

impl<T: Debug> Debug for Vector2<T>
[src]

Formats the value using the given formatter.

impl<T: Copy> Copy for Vector2<T>
[src]

impl<T: Add + Copy> Add<T> for Vector2<T>
[src]

The resulting type after applying the + operator

The method for the + operator

impl<T: Sub + Copy> Sub<T> for Vector2<T>
[src]

The resulting type after applying the - operator

The method for the - operator

impl<T: Mul + Copy> Mul<T> for Vector2<T>
[src]

The resulting type after applying the * operator

The method for the * operator

impl<T: Div + Copy> Div<T> for Vector2<T>
[src]

The resulting type after applying the / operator

The method for the / operator

impl<T: Add> Add for Vector2<T>
[src]

The resulting type after applying the + operator

The method for the + operator

impl<T: Sub> Sub for Vector2<T>
[src]

The resulting type after applying the - operator

The method for the - operator

impl<T: Mul> Mul for Vector2<T>
[src]

The resulting type after applying the * operator

The method for the * operator

impl<T: Div> Div for Vector2<T>
[src]

The resulting type after applying the / operator

The method for the / operator