Skip to content
This repository has been archived by the owner on Oct 28, 2024. It is now read-only.

Commit

Permalink
fix: f64 glam interpolation support
Browse files Browse the repository at this point in the history
  • Loading branch information
Domenico Verde committed Oct 27, 2024
1 parent fc56891 commit d9a5b30
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/glam.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
use crate::impl_Interpolate;
use glam::{Quat, Vec2, Vec3, Vec3A, Vec4};
use glam::{DQuat, DVec2, DVec3, DVec4, Quat, Vec2, Vec3, Vec3A, Vec4};

impl_Interpolate!(f32, Vec2, std::f32::consts::PI);
impl_Interpolate!(f32, Vec3, std::f32::consts::PI);
impl_Interpolate!(f32, Vec3A, std::f32::consts::PI);
impl_Interpolate!(f32, Vec4, std::f32::consts::PI);
impl_Interpolate!(f32, Quat, std::f32::consts::PI);

impl_Interpolate!(f64, DVec2, std::f64::consts::PI);
impl_Interpolate!(f64, DVec3, std::f64::consts::PI);
impl_Interpolate!(f64, DVec4, std::f64::consts::PI);
impl_Interpolate!(f64, DQuat, std::f64::consts::PI);

0 comments on commit d9a5b30

Please sign in to comment.