pub(crate) struct Trilinear<const GRID_SIZE: usize> {}Implementations§
Source§impl<const GRID_SIZE: usize> Trilinear<GRID_SIZE>
impl<const GRID_SIZE: usize> Trilinear<GRID_SIZE>
fn interpolate<T: Copy + Sub<T, Output = T> + Mul<T, Output = T> + Mul<f32, Output = T> + Add<T, Output = T> + From<f32> + FusedMultiplyAdd<T> + FusedMultiplyNegAdd<T>>( &self, lut_r: &BarycentricWeight<f32>, lut_g: &BarycentricWeight<f32>, lut_b: &BarycentricWeight<f32>, r: impl Fetcher<T>, ) -> T
Trait Implementations§
Source§impl<const GRID_SIZE: usize> MultidimensionalInterpolation for Trilinear<GRID_SIZE>
impl<const GRID_SIZE: usize> MultidimensionalInterpolation for Trilinear<GRID_SIZE>
fn inter3( &self, cube: &[f32], lut_r: &BarycentricWeight<f32>, lut_g: &BarycentricWeight<f32>, lut_b: &BarycentricWeight<f32>, ) -> Vector3f
fn inter4( &self, cube: &[f32], lut_r: &BarycentricWeight<f32>, lut_g: &BarycentricWeight<f32>, lut_b: &BarycentricWeight<f32>, ) -> Vector4f
Auto Trait Implementations§
impl<const GRID_SIZE: usize> Freeze for Trilinear<GRID_SIZE>
impl<const GRID_SIZE: usize> RefUnwindSafe for Trilinear<GRID_SIZE>
impl<const GRID_SIZE: usize> Send for Trilinear<GRID_SIZE>
impl<const GRID_SIZE: usize> Sync for Trilinear<GRID_SIZE>
impl<const GRID_SIZE: usize> Unpin for Trilinear<GRID_SIZE>
impl<const GRID_SIZE: usize> UnsafeUnpin for Trilinear<GRID_SIZE>
impl<const GRID_SIZE: usize> UnwindSafe for Trilinear<GRID_SIZE>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more