Trait VectorSource

Source
pub trait VectorSource<T: FloatType>: 'static {
    const IS_3D: bool;

    // Required methods
    fn into_2d(self) -> [T; 2];
    fn into_3d(self) -> [T; 3];
}

Required Associated Constants§

Required Methods§

Source

fn into_2d(self) -> [T; 2]

Source

fn into_3d(self) -> [T; 3]

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl<T: FloatType> VectorSource<T> for [T; 2]

Source§

const IS_3D: bool = false

Source§

fn into_2d(self) -> [T; 2]

Source§

fn into_3d(self) -> [T; 3]

Source§

impl<T: FloatType> VectorSource<T> for [T; 3]

Source§

const IS_3D: bool = true

Source§

fn into_2d(self) -> [T; 2]

Source§

fn into_3d(self) -> [T; 3]

Implementors§