@Override public FGEPoint getNearestPoint(FGEPoint aPoint) { if (containsPoint(aPoint)) { return aPoint.clone(); } return FGEPoint.getNearestPoint( aPoint, halfPlane1.line.getProjection(aPoint), halfPlane2.line.getProjection(aPoint)); }