Skip to content

Commit

Permalink
- fix rad_to_deg generic function which had copy / paste error and in…
Browse files Browse the repository at this point in the history
…cluded deg_to_rad instead
  • Loading branch information
polymonster committed Jul 15, 2023
1 parent 9cf423f commit c9e3183
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ pub fn deg_to_rad<T: Float, V: FloatOps<T>>(a: V) -> V {

/// returns the degree value converted from value `a` which is specificied in radians
pub fn rad_to_deg<T: Float, V: FloatOps<T>>(a: V) -> V {
V::deg_to_rad(a)
V::rad_to_deg(a)
}

/// returns the floored value of `a` (round down to nearest integer)
Expand Down

0 comments on commit c9e3183

Please sign in to comment.