示例#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);
}
示例#2
0
bool
SectorZone::angleInSector(const Angle b) const
{
    return b.Between(StartRadial, EndRadial);
}
示例#3
0
文件: ARange.hpp 项目: DRIZO/xcsoar
 /**
  * Is the specified value within the range?
  */
 gcc_pure
 bool IsInside(const Angle value) const {
   return value.Between(start, end);
 }