Trait veloren_common::util::projection::Projection

source ·
pub trait Projection<T> {
    type Output;

    // Required method
    fn projected(self, onto: &T) -> Self::Output;
}
Expand description

Projection trait for projection of linear types and shapes

Required Associated Types§

Required Methods§

source

fn projected(self, onto: &T) -> Self::Output

Implementations on Foreign Types§

source§

impl Projection<Dir> for Vec3<f32>

§

type Output = Vec3<f32>

source§

fn projected(self, dir: &Dir) -> Self::Output

source§

impl Projection<Plane> for Vec3<f32>

§

type Output = Vec3<f32>

source§

fn projected(self, plane: &Plane) -> Self::Output

source§

impl Projection<Vec2<f32>> for Vec2<f32>

§

type Output = Vec2<f32>

source§

fn projected(self, v: &Self) -> Self::Output

source§

impl Projection<Vec3<f32>> for Vec3<f32>

§

type Output = Vec3<f32>

source§

fn projected(self, v: &Self) -> Self::Output

source§

impl<T> Projection<Plane> for Extent2<T>
where T: Projection<Plane, Output = T>,

§

type Output = Extent2<T>

source§

fn projected(self, plane: &Plane) -> Self::Output

Implementors§