GetComponent

Trait GetComponent 

Source
pub trait GetComponent {
    type Scalar: Copy;

    // Required method
    fn at(self, component_index: usize) -> Self::Scalar;
}

Required Associated Types§

Required Methods§

Source

fn at(self, component_index: usize) -> Self::Scalar

Returns the component specified by index. I.e. X = 0, Y = 1, Z = 2.

Implementors§

Source§

impl<T> GetComponent for PointN<[T; 2]>
where T: Copy,

Source§

impl<T> GetComponent for PointN<[T; 3]>
where T: Copy,