Example #1
0
bool
SectorZone::IsAngleInSector(const Angle b) const
{
  // Quit early if we have a full circle
  if ((end_radial - start_radial).AsBearing() <= Angle::FullCircle() / 512)
    return true;

  return b.Between(start_radial, end_radial);
}
Example #2
0
bool
SectorZone::angleInSector(const Angle b) const
{
    return b.Between(StartRadial, EndRadial);
}
Example #3
0
 /**
  * Is the specified value within the range?
  */
 gcc_pure
 bool IsInside(const Angle value) const {
   return value.Between(start, end);
 }