[][src]Trait scaled::Point2d

pub trait Point2d<S: FixedSqrt, U>: Sized + Clone + Copy + Default {
    fn new(x: S, y: S) -> Self;
fn map<F, T>(self, f: F) -> Point2D<T, U>
    where
        F: FnMut(S) -> T
; fn origin() -> Self { ... }
fn from_num<N: ToFixed>(num: Point2D<N, U>) -> Self { ... }
fn wrapping_from_num<N: ToFixed>(num: Point2D<N, U>) -> Self { ... }
fn from_bits(bits: Point2D<S::Bits, U>) -> Self { ... }
fn to_num<N: FromFixed>(self) -> Point2D<N, U> { ... }
fn to_bits(self) -> Point2D<S::Bits, U> { ... } }

Required methods

fn new(x: S, y: S) -> Self

fn map<F, T>(self, f: F) -> Point2D<T, U> where
    F: FnMut(S) -> T, 

Loading content...

Provided methods

fn origin() -> Self

fn from_num<N: ToFixed>(num: Point2D<N, U>) -> Self

fn wrapping_from_num<N: ToFixed>(num: Point2D<N, U>) -> Self

fn from_bits(bits: Point2D<S::Bits, U>) -> Self

fn to_num<N: FromFixed>(self) -> Point2D<N, U>

fn to_bits(self) -> Point2D<S::Bits, U>

Loading content...

Implementations on Foreign Types

impl<S, U> Point2d<S, U> for Point2D<S, U> where
    S: FixedSqrt
[src]

Loading content...

Implementors

Loading content...