Trait Primitive

Source
pub trait Primitive<S, V>
where S: Field, V: VectorSpace<S>,
{ // Required methods fn translate(self, displacement: V) -> Self; fn scale(self, scale: NonZero<S>) -> Self; }

Required Methods§

Source

fn translate(self, displacement: V) -> Self

Source

fn scale(self, scale: NonZero<S>) -> Self

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<S> Primitive<S, Vec2<S>> for Aabb2<S>
where S: Field,

Source§

impl<S> Primitive<S, Vec3<S>> for Aabb3<S>
where S: Field,

Source§

impl<S> Primitive<S, S> for Interval<S>
where S: Field + VectorSpace<S>,