Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add trigonometry functions #282

Closed
gauteh opened this issue Jul 23, 2023 · 1 comment
Closed

Add trigonometry functions #282

gauteh opened this issue Jul 23, 2023 · 1 comment

Comments

@gauteh
Copy link

gauteh commented Jul 23, 2023

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.

Mentioned in by @tuxmark5 in #178 (comment)_

@gauteh
Copy link
Author

gauteh commented Jul 26, 2023

Nevermind.. I don't know why I didn't see those in the docs in the first place.

@gauteh gauteh closed this as completed Jul 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant