Trait point_like::FromInto

source ·
pub trait FromInto<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: Float> FromInto<[F; 2]> for [F; 2]

source§

impl<F: Float> FromInto<[F; 2]> for [F; 3]

source§

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

source§

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

Implementors§