MCPcopy Create free account
hub / github.com/comaps/comaps / DegToRad

Function DegToRad

libs/base/math.hpp:87–90  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

85{
86template <typename Float>
87Float constexpr DegToRad(Float deg)
88{
89 return deg * Float(math::pi) / Float(180);
90}
91
92template <typename Float>
93Float constexpr RadToDeg(Float rad)

Callers 15

AddBearingPenaltyMethod · 0.85
mainFunction · 0.85
PointToPolygonFunction · 0.85
OnCompassUpdatedMethod · 0.85
GetDistanceFunction · 0.85
RotateAroundXMethod · 0.85
RotateAroundYMethod · 0.85
RotateAroundZMethod · 0.85
GetPointOnSphereFunction · 0.85
DistanceOnSphereFunction · 0.85
ToVectorFunction · 0.85
CreateCircleOnNorthFunction · 0.85

Calls

no outgoing calls

Tested by 1

UNIT_TESTFunction · 0.68