From bee43bf004a7e22c6db1c3b2cf1af58b03828208 Mon Sep 17 00:00:00 2001 From: Brendan Zabarauskas Date: Sat, 26 Jan 2013 08:43:44 +1100 Subject: [PATCH] Fix type inference issue --- src/quat.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/quat.rs b/src/quat.rs index 97daf23..8131efc 100644 --- a/src/quat.rs +++ b/src/quat.rs @@ -274,7 +274,7 @@ pub impl Quat { if dot > dot_threshold { return self.nlerp(other, amount); // if quaternions are close together use `nlerp` } else { - let robust_dot = dot.clamp(&-one(), &one()); // stay within the domain of acos() + let robust_dot = dot.clamp(&-one::(), &one()); // stay within the domain of acos() let theta_0 = acos(&robust_dot); // the angle between the quaternions let theta = theta_0 * amount; // the fraction of theta specified by `amount`