MCPcopy Create free account
hub / github.com/KAlO2/PerfectShow / DegreesAsEyaw

Function DegreesAsEyaw

jni/stasm/misc.cpp:866–887  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

864}
865
866EYAW DegreesAsEyaw( // this determines what model is best for a given yaw
867 double yaw, // in: yaw in degrees, negative if left facing
868 int nmods) // in
869{
870#if MOD_3 || MOD_A || MOD_A_EMU // experimental versions
871 CV_Assert(nmods == 3);
872 if (yaw < -EYAW_TO_USE_DET45)
873 return EYAW_45;
874
875 else if (yaw < -EYAW_TO_USE_DET22)
876 return EYAW_22;
877
878 else if (yaw <= EYAW_TO_USE_DET22)
879 return EYAW00;
880
881 else if (yaw <= EYAW_TO_USE_DET45)
882 return EYAW22;
883
884 return EYAW45;
885#endif
886 return EYAW00;
887}
888
889const char* EyawAsString(EYAW eyaw) // utility for debugging/tracing
890{

Callers 2

PinnedStartShapeAndRoiFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected