MCPcopy Create free account
hub / github.com/KAlO2/PerfectShow / InRect

Function InRect

jni/stasm/misc.cpp:955–966  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

953
954
955bool InRect( // is the center of rect within the enclosing rect?
956 const Rect& rect, // in
957 const Rect& enclosing) // in
958{
959 int x = rect.x + rect.width / 2; // center of rectangle
960 int y = rect.y + rect.height / 2;
961
962 return x >= enclosing.x &&
963 x <= enclosing.x + enclosing.width &&
964 y >= enclosing.y &&
965 y <= enclosing.y + enclosing.height;
966}
967
968bool InRect( // is x,y within the enclosing rect?
969 double x, // in

Callers 2

SelectEyesFunction · 0.85
SelectMouthFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected