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

Function TopX

TheForceEngine/TFE_Polygon/clipper.cpp:615–619  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

613//------------------------------------------------------------------------------
614
615inline cInt TopX(TEdge &edge, const cInt currentY)
616{
617 return ( currentY == edge.Top.Y ) ?
618 edge.Top.X : edge.Bot.X + Round(edge.Dx *(currentY - edge.Bot.Y));
619}
620//------------------------------------------------------------------------------
621
622void IntersectPoint(TEdge &Edge1, TEdge &Edge2, IntPoint &ip)

Callers 5

IntersectPointFunction · 0.85
AddLocalMinPolyMethod · 0.85
BuildIntersectListMethod · 0.85
E2InsertsBeforeE1Function · 0.85

Calls 1

RoundFunction · 0.85

Tested by

no test coverage detected