[][src]Struct megaui::Vector2

pub struct Vector2 {
    pub x: f32,
    pub y: f32,
}

Fields

x: f32y: f32

Implementations

impl Vector2[src]

pub fn new(x: f32, y: f32) -> Vector2[src]

pub fn distance(self, other: Vector2) -> f32[src]

Trait Implementations

impl Add<Vector2> for Vector2[src]

type Output = Vector2

The resulting type after applying the + operator.

impl Clone for Vector2[src]

impl Copy for Vector2[src]

impl Debug for Vector2[src]

impl Default for Vector2[src]

impl Sub<Vector2> for Vector2[src]

type Output = Vector2

The resulting type after applying the - operator.

Auto Trait Implementations

impl RefUnwindSafe for Vector2

impl Send for Vector2

impl Sync for Vector2

impl Unpin for Vector2

impl UnwindSafe for Vector2

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.