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

Function GetHorzDirection

TheForceEngine/TFE_Polygon/clipper.cpp:2610–2623  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2608//------------------------------------------------------------------------------
2609
2610void GetHorzDirection(TEdge& HorzEdge, Direction& Dir, cInt& Left, cInt& Right)
2611{
2612 if (HorzEdge.Bot.X < HorzEdge.Top.X)
2613 {
2614 Left = HorzEdge.Bot.X;
2615 Right = HorzEdge.Top.X;
2616 Dir = dLeftToRight;
2617 } else
2618 {
2619 Left = HorzEdge.Top.X;
2620 Right = HorzEdge.Bot.X;
2621 Dir = dRightToLeft;
2622 }
2623}
2624//------------------------------------------------------------------------
2625
2626/*******************************************************************************

Callers 1

ProcessHorizontalMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected