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

Function SetDx

TheForceEngine/TFE_Polygon/clipper.cpp:591–596  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

589//---------------------------------------------------------------------------
590
591inline void SetDx(TEdge &e)
592{
593 cInt dy = (e.Top.Y - e.Bot.Y);
594 if (dy == 0) e.Dx = HORIZONTAL;
595 else e.Dx = (double)(e.Top.X - e.Bot.X) / dy;
596}
597//---------------------------------------------------------------------------
598
599inline void SwapSides(TEdge &Edge1, TEdge &Edge2)

Callers 1

InitEdge2Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected