fix formatting

This commit is contained in:
Matt Huszagh 2020-12-16 16:14:11 -08:00
parent 5d055b01a0
commit e257545321
2 changed files with 2 additions and 2 deletions

View File

@ -80,8 +80,8 @@ pub fn atan2(y: i32, x: i32) -> i32 {
#[cfg(test)]
mod tests {
use super::*;
use core::f64::consts::PI;
use crate::testing::isclose;
use core::f64::consts::PI;
fn angle_to_axis(angle: f64) -> f64 {
let angle = angle % (PI / 2.);

View File

@ -1,8 +1,8 @@
use core::ops::{Add, Mul, Neg};
use serde::{Deserialize, Serialize};
use core::f32;
use super::abs;
use core::f32;
// These are implemented here because core::f32 doesn't have them (yet).
// They are naive and don't handle inf/nan.