Skip to content

Commit

Permalink
Use EPSILON from core
Browse files Browse the repository at this point in the history
  • Loading branch information
emilk committed Feb 11, 2021
1 parent fba71c4 commit 1e5abb9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/quat.rs
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ macro_rules! impl_quat_tests {

#[test]
fn test_rotation_arc() {
let eps = 2.0 * $t::EPSILON.sqrt();
let eps = 2.0 * core::$t::EPSILON.sqrt();

for &from in &vec3_float_test_vectors!($vec3) {
let from = from.normalize();
Expand Down
2 changes: 1 addition & 1 deletion tests/vec3.rs
Original file line number Diff line number Diff line change
Expand Up @@ -672,7 +672,7 @@ macro_rules! impl_vec3_float_tests {

#[test]
fn test_any_ortho() {
let eps = 2.0 * $t::EPSILON;
let eps = 2.0 * core::$t::EPSILON;

for &v in &vec3_float_test_vectors!($vec3) {
let orthogonal = v.any_orthogonal_vector();
Expand Down

0 comments on commit 1e5abb9

Please sign in to comment.