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

Function GetDx

TheForceEngine/TFE_Polygon/clipper.cpp:584–588  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

582//------------------------------------------------------------------------------
583
584inline double GetDx(const IntPoint pt1, const IntPoint pt2)
585{
586 return (pt1.Y == pt2.Y) ?
587 HORIZONTAL : (double)(pt2.X - pt1.X) / (pt2.Y - pt1.Y);
588}
589//---------------------------------------------------------------------------
590
591inline void SetDx(TEdge &e)

Callers 1

FirstIsBottomPtFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected