get Quadrants
Calculates the bounds of the quadrants that should be used for filtering POIs These quadrants are rotated from the standard cardinal direction quadrants (north: [315.0, 45.0), east: [45.0, 135.0), etc.) such that the provided heading becomes the center of the standard cardinal direction quadrant that it belongs to. This ensures that callouts filtered into quadrants will always be centered around the user's current heading if possible (if quadrants were fixed to the standard cardinal direction, and the user were facing 315.0, then all callouts for north
would be to the user's right). Here are several examples to illustrate how this works:
Heading := 0.0 In this case, the heading is already aligned with the center of the north
quadrant, so the standard cardinal direction quadrants are returned. Quadrants returned: north: 315.0, 45.0 east: 45.0, 135.0 south: 135.0, 225.0 west: 225.0, 315.0
Heading := 95.0 In this case, the heading is in the east
quadrant, but it is rotated 5.0 degrees clockwise from the center of the east
quadrant, so the standard cardinal direction quadrants are rotated 5.0 degrees clockwise. Quadrants returned: north: 320.0, 50.0 east: 50.0, 140.0 south: 140.0, 230.0 west: 230.0, 320.0
Heading := 230.0 In this case, the heading is in the west
quadrant, but it is rotated 40.0 degrees counter-clockwise from the center of the west
quadrant, so the standard cardinal direction quadrants are rotated 40.0 degrees counter-clockwise. Quadrants returned: north: 275.0, 5.0 east: 5.0, 95.0 south: 95.0, 185.0 west: 185.0, 275.0
Return
A List of Quadrant objects that hold the heading for each quadrant.
Parameters
Heading in degrees.