fix formatting
This commit is contained in:
parent
5d055b01a0
commit
e257545321
|
@ -80,8 +80,8 @@ pub fn atan2(y: i32, x: i32) -> i32 {
|
||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
mod tests {
|
mod tests {
|
||||||
use super::*;
|
use super::*;
|
||||||
use core::f64::consts::PI;
|
|
||||||
use crate::testing::isclose;
|
use crate::testing::isclose;
|
||||||
|
use core::f64::consts::PI;
|
||||||
|
|
||||||
fn angle_to_axis(angle: f64) -> f64 {
|
fn angle_to_axis(angle: f64) -> f64 {
|
||||||
let angle = angle % (PI / 2.);
|
let angle = angle % (PI / 2.);
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
use core::ops::{Add, Mul, Neg};
|
use core::ops::{Add, Mul, Neg};
|
||||||
use serde::{Deserialize, Serialize};
|
use serde::{Deserialize, Serialize};
|
||||||
|
|
||||||
use core::f32;
|
|
||||||
use super::abs;
|
use super::abs;
|
||||||
|
use core::f32;
|
||||||
|
|
||||||
// These are implemented here because core::f32 doesn't have them (yet).
|
// These are implemented here because core::f32 doesn't have them (yet).
|
||||||
// They are naive and don't handle inf/nan.
|
// They are naive and don't handle inf/nan.
|
||||||
|
|
Loading…
Reference in New Issue