MCPcopy Create free account
hub / github.com/TheForceEngine/TheForceEngine / sign

Function sign

TheForceEngine/TFE_Polygon/polygon.cpp:393–396  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

391 }
392
393 f32 sign(f32 x)
394 {
395 return x < 0.0f ? -1.0f : 1.0f;
396 }
397
398 s32 pointOnPolygonEdge(const Polygon* poly, Vec2f p)
399 {

Callers 1

pointInsidePolygonFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected