Trait colain::Point[][src]

pub trait Point<T: Copy> {
    fn x(&self) -> T;
fn y(&self) -> T; }

Reinterpret [T; 2] as a point

Required methods

fn x(&self) -> T[src]

Get the x component of the point

fn y(&self) -> T[src]

Get the y component of the point

Loading content...

Implementations on Foreign Types

impl<T: Copy> Point<T> for [T; 2][src]

Loading content...

Implementors

Loading content...