pub trait GetComponent { type Scalar: Copy; fn at(self, component_index: usize) -> Self::Scalar; }
Returns the component specified by index. I.e. X = 0, Y = 1, Z = 2.