本文整理汇总了C++中AbstractAirspace::Inside方法的典型用法代码示例。如果您正苦于以下问题:C++ AbstractAirspace::Inside方法的具体用法?C++ AbstractAirspace::Inside怎么用?C++ AbstractAirspace::Inside使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类AbstractAirspace
的用法示例。
在下文中一共展示了AbstractAirspace::Inside方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1:
bool
AirspacePredicateHeightRangeExcludeTwo::condition(const AbstractAirspace& t) const
{
if (!check_height(t))
return false;
return !t.Inside(p1) && !t.Inside(p2);
}
示例2: operator
bool operator()(const AbstractAirspace& airspace) const {
// Airspace should be visible or have a warning/inside status
// and airspace needs to be at specified location
return (visible_predicate(airspace) || warnings.Contains(airspace)) &&
airspace.Inside(location);
}
示例3: operator
virtual bool operator()(const AbstractAirspace &airspace) const {
return CheckAirspace(airspace) &&
/* skip airspaces that we already entered */
!airspace.Inside(location) &&
/* check altitude; hard-coded margin of 50m (for now) */
(!altitude_available ||
(airspace.GetBase().IsBelow(altitude, fixed(50)) &&
airspace.GetTop().IsAbove(altitude, fixed(50))));
}
示例4: Invalid
AirspaceInterceptSolution
AirspaceNearestSort::solve_intercept(const AbstractAirspace &a) const
{
if (a.Inside(m_location)) {
return AirspaceInterceptSolution::Invalid();
} else {
AirspaceInterceptSolution sol;
sol.location = a.ClosestPoint(m_location);
sol.distance = sol.location.Distance(m_location);
return sol;
}
}
示例5:
bool
AirspacePredicateAircraftInside::operator()(const AbstractAirspace &airspace) const
{
return airspace.Inside(state);
}
示例6:
bool
OutsideAirspacePredicate::operator()(const AbstractAirspace &airspace) const
{
return !airspace.Inside(location);
}
示例7:
bool
AirspacePredicateInside::condition(const AbstractAirspace &airspace) const
{
return airspace.Inside(location);
}