bool FAITriangleRules::TestDistances(const fixed d1, const fixed d2, const fixed d3, const FAITriangleSettings &settings) { const fixed d_wp = d1 + d2 + d3; /* * A triangle is a valid FAI-triangle, if no side is less than * 28% of the total length (total length less than 750 km), or no * side is less than 25% or larger than 45% of the total length * (totallength >= 750km). */ return IsSmallFAITriangle(d_wp, d1, d2, d3) || IsLargeFAITriangle(d_wp, d1, d2, d3, settings.GetThreshold()); }