MCPcopy Create free account
hub / github.com/chrxh/alien / unitVectorOfAngle

Method unitVectorOfAngle

source/Base/Math.cpp:34–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32}
33
34RealVector2D Math::unitVectorOfAngle(float angle)
35{
36 return {sinf(angle * Const::DegToRad), -cosf(angle * Const::DegToRad)};
37}
38
39RealMatrix2D Math::calcRotationMatrix(float angle)
40{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected