MCPcopy Create free account
hub / github.com/CruiserOne/Astrolog / ClipLesser

Function ClipLesser

xgeneral.cpp:823–828  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

821// too. These are used by the FDrawClip() routine below.
822
823void ClipLesser(int *x1, int *y1, int *x2, int *y2, int s)
824{
825 if (*y2 - *y1)
826 *x1 -= NMultDiv(*y1 - s, *x2 - *x1, *y2 - *y1);
827 *y1 = s;
828}
829
830void ClipGreater(int *x1, int *y1, int *x2, int *y2, int s)
831{

Callers 1

FDrawClipFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected