pub trait FromIntoPointLike<T>: Sized {
    // Required methods
    fn from_point_like(t: T) -> Self;
    fn into_point_like(self) -> T;
}
Expand description

A point-like type that can be converted to and from [F; 2].

Any third component is assumed to be zero.

Required Methods§

source

fn from_point_like(t: T) -> Self

source

fn into_point_like(self) -> T

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<F> FromIntoPointLike<[F; 2]> for [F; 2]
where F: Float,

source§

impl<F> FromIntoPointLike<[F; 2]> for [F; 3]
where F: Float,

source§

impl<F> FromIntoPointLike<[F; 2]> for (F, F)
where F: Float,

source§

impl<F> FromIntoPointLike<[F; 2]> for (F, F, F)
where F: Float,

Implementors§