Skip to content

Commit

Permalink
Add method docs for no_std float::Float trait
Browse files Browse the repository at this point in the history
  • Loading branch information
mb64 committed Jul 9, 2018
1 parent ee3c2b7 commit cacfe2d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions palette/src/float.rs
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,15 @@ mod no_std_float_trait {
/// [num_traits]: https://docs.rs/num-traits/0.2.5/num_traits/float/trait.Float.html
/// [module]: index.html
pub trait Float: FloatCore {
/// `x.sqrt()` computes the square root of `x`.
fn sqrt(self) -> Self;
/// `x.powf(y)` computes `x` to the power of `y`.
fn powf(self, other: Self) -> Self;
/// `x.sin()` computes the sine of `x` radians.
fn sin(self) -> Self;
/// `x.cos()` computes the cosine of `x` radians.
fn cos(self) -> Self;
/// `y.atan2(x)` computes the inverse tangent of `y / x`, in the corresponding quadrant
fn atan2(self, other: Self) -> Self;
}

Expand Down

0 comments on commit cacfe2d

Please sign in to comment.