[−][src]Trait building_blocks_core::point::Point
A trait that bundles op traits that all PointN<N>
(and its components) should have.
Associated Types
Loading content...Required methods
fn basis() -> Vec<Self>
fn abs(&self) -> Self
Returns a point where each component is the absolute value of the input component.
fn at(&self, component_index: usize) -> Self::Scalar
Returns the component specified by index. I.e. X = 0, Y = 1, Z = 2.
fn map_components(&self, f: impl Fn(Self::Scalar) -> Self::Scalar) -> Self
Returns the point after applying f
component-wise.