You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be useful to have trignometric functions available through some trait. Ideally I would wish for generic functions implementing sin, cos, etc. So that they can be used not as a member function, but as a standalone generic function (which in my subjective opinion improves the readability of rust implemented math):
fn sin<T: FloatTrig>(arg: T) -> T { T.sin() }
Is there some other standard crate already doing this? There has probably been discussions related to this on the rust stdlib.
It would be useful to have trignometric functions available through some trait. Ideally I would wish for generic functions implementing
sin
,cos
, etc. So that they can be used not as a member function, but as a standalone generic function (which in my subjective opinion improves the readability of rust implemented math):Is there some other standard crate already doing this? There has probably been discussions related to this on the rust stdlib.
Mentioned in by @tuxmark5 in #178 (comment)_
The text was updated successfully, but these errors were encountered: