1. A method for detecting a crossing of a boundary, the method comprising: identifying a boundary within a coordinate system, wherein the boundary is defined by at least one rectangle; identifying a set of coordinates associated with a particular location of a monitored device; rotating the identified set of coordinates by an angle between a selected side of a particular rectangle of the boundary and an axis of the coordinate system; and comparing the rotated set of coordinates to a rotated rectangle to determine whether the location of the monitored device is located within the particular rectangle, wherein the particular rectangle is rotated by the angle to form the rotated rectangle such that the selected side of the rotated rectangle is oriented parallel to the axis of the coordinate system.