pub trait Vectorlike<T, Unit> {
    fn to_vector(&self) -> Vector<T, Unit>;
    fn to_size(&self) -> Size<T, Unit>;
    fn to_point(&self) -> Point<T, Unit>;
}
Expand description

Methods that enable converting between 2d types that have two components.

Required Methods

Returns self as a Vector.

Returns self as a Size.

Returns self as a Point.

Implementors