/// <summary> /// Checks if <paramref name="target" /> is inside the interval. /// </summary> /// <param name="target">Angle to be checked.</param> /// <returns>True if <paramref name="target" /> is inside the interval.</returns> public bool Inside(double target) { if (_full) { return(true); } if (_from < _to) { return(_from.AboutLesserThanOrEqual(target) && target.AboutLesserThanOrEqual(_to)); } return(_from.AboutLesserThanOrEqual(target) || target.AboutLesserThanOrEqual(_to)); }