Skip to content

Create radian and degree conversion functions #98

Description

@ninotarantino

Many models make use of things like

static const double rad_per_degree = M_PI / 180.0;

We should provide this as a constant in the Math Utils model. Or (maybe better), we can mimic Python's math.radians() and math.degrees() functions.

// Maybe provide both?
inline constexpr double DEG_TO_RAD =  M_PI / 180.0;
double some_value_in_radians = MathUtils::radians(10.0);

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions