Search in sources :

Example 1 with SubCircle

use of org.hipparchus.geometry.spherical.twod.SubCircle in project Orekit by CS-SI.

the class EllipsoidTessellator method meetInside.

/**
 * Check if an arc meets the inside of a zone.
 * @param s1 first point
 * @param s2 second point
 * @param zone zone to check arc against
 * @return true if the arc meets the inside of the zone
 */
private boolean meetInside(final S2Point s1, final S2Point s2, final SphericalPolygonsSet zone) {
    final Circle circle = new Circle(s1, s2, zone.getTolerance());
    final double alpha1 = circle.toSubSpace(s1).getAlpha();
    final double alpha2 = MathUtils.normalizeAngle(circle.toSubSpace(s2).getAlpha(), alpha1 + FastMath.PI);
    final SubCircle sub = new SubCircle(circle, new ArcsSet(alpha1, alpha2, zone.getTolerance()));
    return recurseMeetInside(zone.getTree(false), sub);
}
Also used : Circle(org.hipparchus.geometry.spherical.twod.Circle) SubCircle(org.hipparchus.geometry.spherical.twod.SubCircle) ArcsSet(org.hipparchus.geometry.spherical.oned.ArcsSet) SubCircle(org.hipparchus.geometry.spherical.twod.SubCircle)

Aggregations

ArcsSet (org.hipparchus.geometry.spherical.oned.ArcsSet)1 Circle (org.hipparchus.geometry.spherical.twod.Circle)1 SubCircle (org.hipparchus.geometry.spherical.twod.SubCircle)1