pub trait ToVector2D<T, K> {
    fn to_vector(self) -> Vector2D<T, K>;
}
Expand description

A helper trait to aid with the ergonomics of using a Vector2D.

Required Methods

Converts this type into a Vector2D.

Implementations on Foreign Types

Makes it so a tuple can be used for interfaces expecting Vector2D.

Implementors

Makes it so that Vector2D itself can be used for interfaces expecting it.