@@ -16,8 +16,8 @@ use crate::render::{NdcToScreen, ViewToProj};
1616use super :: {
1717 float:: f32,
1818 point:: { Point2 , Point2u , Point3 } ,
19- space:: { Linear , Proj4 , Real } ,
20- vec:: { ProjVec4 , Vec2 , Vec3 , Vector } ,
19+ space:: { Linear , Proj3 , Real } ,
20+ vec:: { ProjVec3 , Vec2 , Vec3 , Vector } ,
2121} ;
2222
2323/// A linear transform from one space (or basis) to another.
@@ -401,7 +401,7 @@ impl<Src> Mat4x4<RealToProj<Src>> {
401401 /// \ · · M33 / \ 1 / \ v3' /
402402 /// ```
403403 #[ must_use]
404- pub fn apply ( & self , p : & Point3 < Src > ) -> ProjVec4 {
404+ pub fn apply ( & self , p : & Point3 < Src > ) -> ProjVec3 {
405405 let v = Vector :: new ( [ p. x ( ) , p. y ( ) , p. z ( ) , 1.0 ] ) ;
406406 from_fn ( |i| self . row_vec ( i) . dot ( & v) ) . into ( )
407407 }
@@ -424,7 +424,7 @@ impl<const DIM: usize, S, I, D> Compose<RealToReal<DIM, S, I>>
424424
425425impl < S > LinearMap for RealToProj < S > {
426426 type Source = Real < 3 , S > ;
427- type Dest = Proj4 ;
427+ type Dest = Proj3 ;
428428}
429429
430430impl < S , I > Compose < RealToReal < 3 , S , I > > for RealToProj < I > {
0 commit comments