[][src]Struct kas::text::Vec2

pub struct Vec2(pub f32, pub f32);

2D size over f32

Implementations

impl Vec2[src]

pub const ZERO: Vec2[src]

Zero

pub const INFINITY: Vec2[src]

Positive infinity

pub fn abs(self) -> Vec2[src]

Take the absolute value of each component

pub fn min(self, other: Vec2) -> Vec2[src]

Return the minimum, componentwise

pub fn max(self, other: Vec2) -> Vec2[src]

Return the maximum, componentwise

Trait Implementations

impl Add<Vec2> for Vec2[src]

type Output = Vec2

The resulting type after applying the + operator.

impl Clone for Vec2[src]

impl Copy for Vec2[src]

impl Debug for Vec2[src]

impl Default for Vec2[src]

impl From<Coord> for Vec2[src]

impl From<DVec2> for Vec2[src]

impl From<Size> for Vec2[src]

impl From<Vec2> for Vec2[src]

impl From<Vec2> for Vec2[src]

impl From<Vec2> for DVec2[src]

impl PartialEq<Vec2> for Vec2[src]

impl StructuralPartialEq for Vec2[src]

impl Sub<Vec2> for Vec2[src]

type Output = Vec2

The resulting type after applying the - operator.

Auto Trait Implementations

impl RefUnwindSafe for Vec2

impl Send for Vec2

impl Sync for Vec2

impl Unpin for Vec2

impl UnwindSafe for Vec2

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.