Skip to content

Add trigonometry functions #282

@gauteh

Description

@gauteh

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)_

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions