delete affine

This commit is contained in:
Quaternions 2024-08-30 12:31:20 -07:00
parent f103c247b8
commit 20285f0f98
2 changed files with 0 additions and 23 deletions

View File

@ -1,20 +0,0 @@
use std::ops::Add;
use fixed_wide_traits::wide::WideDot;
//TODO: replace this with 4x3 matrix
// mat4x3.wide_dot(vec3.extend(1))
pub struct Affine<M,T>{
pub matrix:M,
pub offset:T,
}
impl<M:Copy,T:Copy> Affine<M,T>{
pub fn wide_transform<X>(&self,input:X)-><<M as WideDot<X>>::Output as Add<T>>::Output
where
M:WideDot<X>,
<M as WideDot<X>>::Output:Add<T>,
{
self.matrix.wide_dot(input)+self.offset
}
}

View File

@ -1,9 +1,6 @@
mod macros;
mod vector;
#[cfg(feature="fixed_wide_traits")]
pub mod affine;
pub use vector::Vector2;
pub use vector::Vector3;
pub use vector::Vector4;