MCPcopy Create free account
hub / github.com/DFHack/dfhack / isInRect

Function isInRect

plugins/rendermax/renderer_light.cpp:37–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35
36
37bool isInRect(const coord2d& pos,const rect2d& rect)
38{
39 if(pos.x>=rect.first.x && pos.y>=rect.first.y && pos.x<rect.second.x && pos.y<rect.second.y)
40 return true;
41 return false;
42}
43
44lightingEngineViewscreen::~lightingEngineViewscreen()
45{

Callers 3

doSunMethod · 0.85
doOcupancyAndLightsMethod · 0.85
lightUpCellMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected