Trait omf::data::traits::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]

Object Safety§

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§