pub trait Primitive<S, P>: Debugwhere
S: Field,
P: AffineSpace<S>,{
// Required methods
fn translate(&mut self, displacement: P::Translation);
fn scale(&mut self, scale: Positive<S>);
fn support(
&self,
direction: <P::Translation as VectorSpace<S>>::NonZero,
) -> (P, S);
}Expand description
Geometric primitives generic over dimension
Required Methods§
fn translate(&mut self, displacement: P::Translation)
fn scale(&mut self, scale: Positive<S>)
Sourcefn support(
&self,
direction: <P::Translation as VectorSpace<S>>::NonZero,
) -> (P, S)
fn support( &self, direction: <P::Translation as VectorSpace<S>>::NonZero, ) -> (P, S)
Returns the point with largeest dot product in search direction