com.groupbyinc.flux.common.apache.lucene.spatial3d.geom.GeoConvexPolygon.class Maven / Gradle / Ivy
???? 4? Hcom/groupbyinc/flux/common/apache/lucene/spatial3d/geom/GeoConvexPolygon Fcom/groupbyinc/flux/common/apache/lucene/spatial3d/geom/GeoBasePolygon GeoConvexPolygon.java Tcom/groupbyinc/flux/common/apache/lucene/spatial3d/geom/GeoConvexPolygon$EitherBound EitherBound points Ljava/util/List; TLjava/util/List; isInternalEdges Ljava/util/BitSet; holes VLjava/util/List; edges E[Lcom/groupbyinc/flux/common/apache/lucene/spatial3d/geom/SidedPlane; notableEdgePoints D[[Lcom/groupbyinc/flux/common/apache/lucene/spatial3d/geom/GeoPoint;
edgePoints C[Lcom/groupbyinc/flux/common/apache/lucene/spatial3d/geom/GeoPoint; isDone Z eitherBounds Ljava/util/Map; ?Ljava/util/Map; prevBrotherMap ?Ljava/util/Map; nextBrotherMap X(Lcom/groupbyinc/flux/common/apache/lucene/spatial3d/geom/PlanetModel;Ljava/util/List;)V h(Lcom/groupbyinc/flux/common/apache/lucene/spatial3d/geom/PlanetModel;Ljava/util/List;Ljava/util/List;)V
! this JLcom/groupbyinc/flux/common/apache/lucene/spatial3d/geom/GeoConvexPolygon; planetModel ELcom/groupbyinc/flux/common/apache/lucene/spatial3d/geom/PlanetModel; pointList H(Lcom/groupbyinc/flux/common/apache/lucene/spatial3d/geom/PlanetModel;)V (
) + . 0 2 4 6 8
:
< java/util/BitSet > ()V @
? A
C done (Z)V E F
G k(Lcom/groupbyinc/flux/common/apache/lucene/spatial3d/geom/PlanetModel;Ljava/util/List;Ljava/util/BitSet;Z)V {(Lcom/groupbyinc/flux/common/apache/lucene/spatial3d/geom/PlanetModel;Ljava/util/List;Ljava/util/List;Ljava/util/BitSet;Z)V J
K internalEdgeFlags returnEdgeInternal J(Lcom/groupbyinc/flux/common/apache/lucene/spatial3d/geom/PlanetModel;DD)V Z(Lcom/groupbyinc/flux/common/apache/lucene/spatial3d/geom/PlanetModel;DDLjava/util/List;)V P
Q
startLatitude D startLongitude java/util/ArrayList V
W A @com/groupbyinc/flux/common/apache/lucene/spatial3d/geom/GeoPoint Y O
Z [ java/util/List ] add (Ljava/lang/Object;)Z _ ` ^ a addPoint (DDZ)V java/lang/IllegalStateException e .Can't call addPoint() if done() already called g (Ljava/lang/String;)V i
f j size ()I l m ^ n set (I)V p q
? r % & t latitude longitude isInternalEdge Can't call done() more than once y "java/lang/IllegalArgumentException { $Polygon needs at least three points. }
| j Bcom/groupbyinc/flux/common/apache/lucene/spatial3d/geom/SidedPlane ? get (I)Ljava/lang/Object; ? ? ^ ?
legalIndex (I)I ? ?
? =com/groupbyinc/flux/common/apache/lucene/spatial3d/geom/Plane ? ?(Lcom/groupbyinc/flux/common/apache/lucene/spatial3d/geom/Vector;Lcom/groupbyinc/flux/common/apache/lucene/spatial3d/geom/Vector;)V ?
? ? >com/groupbyinc/flux/common/apache/lucene/spatial3d/geom/Vector ? evaluateIsZero C(Lcom/groupbyinc/flux/common/apache/lucene/spatial3d/geom/Vector;)Z ? ?
? ? java/lang/StringBuilder ?
? A !Polygon points are all coplanar: ? append -(Ljava/lang/String;)Ljava/lang/StringBuilder; ? ?
? ? -(Ljava/lang/Object;)Ljava/lang/StringBuilder; ? ?
? ? toString ()Ljava/lang/String; ? ?
? ? ?(Lcom/groupbyinc/flux/common/apache/lucene/spatial3d/geom/Vector;Lcom/groupbyinc/flux/common/apache/lucene/spatial3d/geom/Vector;Lcom/groupbyinc/flux/common/apache/lucene/spatial3d/geom/Vector;)V ?
? ? java/util/HashMap ? q
? ? isNumericallyIdentical B(Lcom/groupbyinc/flux/common/apache/lucene/spatial3d/geom/Plane;)Z ? ?
? ? isWithin ? ?
? ? 7Convex polygon has a side that is more than 180 degrees ? ?(Lcom/groupbyinc/flux/common/apache/lucene/spatial3d/geom/SidedPlane;Lcom/groupbyinc/flux/common/apache/lucene/spatial3d/geom/SidedPlane;)V ?
?
java/util/Map ? put 8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; ? ? ? ? iterator ()Ljava/util/Iterator; ? ? ^ ? java/util/Iterator ? hasNext ()Z ? ? ? ? next ()Ljava/lang/Object; ? ? ? ? Bcom/groupbyinc/flux/common/apache/lucene/spatial3d/geom/GeoPolygon ?
getEdgePoints E()[Lcom/groupbyinc/flux/common/apache/lucene/spatial3d/geom/GeoPoint; ? ? ? ?
isWithinHoles E(Lcom/groupbyinc/flux/common/apache/lucene/spatial3d/geom/GeoPoint;)Z ? ?
? 3Polygon edge intersects a polygon hole; not allowed ? index I j start BLcom/groupbyinc/flux/common/apache/lucene/spatial3d/geom/GeoPoint; end planeToFind ?Lcom/groupbyinc/flux/common/apache/lucene/spatial3d/geom/Plane;
endPointIndex check sp DLcom/groupbyinc/flux/common/apache/lucene/spatial3d/geom/SidedPlane; i
interiorPoint edge bound1Index bound2Index
startingIndex edgeIndex hole DLcom/groupbyinc/flux/common/apache/lucene/spatial3d/geom/GeoPolygon; p holeEdgePoints isInternalReturnEdge edgePointCount ? ? point (DDD)Z
localIsWithin ? ?
? ? ? ? ? polygon x y z ? T ? ? ? T ? ? T ? v @Lcom/groupbyinc/flux/common/apache/lucene/spatial3d/geom/Vector;
? ?
intersects ?(Lcom/groupbyinc/flux/common/apache/lucene/spatial3d/geom/Plane;[Lcom/groupbyinc/flux/common/apache/lucene/spatial3d/geom/GeoPoint;[Lcom/groupbyinc/flux/common/apache/lucene/spatial3d/geom/Membership;)Z (I)Z ?
? Bcom/groupbyinc/flux/common/apache/lucene/spatial3d/geom/Membership
&(Ljava/lang/Object;)Ljava/lang/Object; ? ??(Lcom/groupbyinc/flux/common/apache/lucene/spatial3d/geom/PlanetModel;Lcom/groupbyinc/flux/common/apache/lucene/spatial3d/geom/Plane;[Lcom/groupbyinc/flux/common/apache/lucene/spatial3d/geom/GeoPoint;[Lcom/groupbyinc/flux/common/apache/lucene/spatial3d/geom/GeoPoint;[Lcom/groupbyinc/flux/common/apache/lucene/spatial3d/geom/Membership;[Lcom/groupbyinc/flux/common/apache/lucene/spatial3d/geom/Membership;)Z
? ?
notablePoints bounds E[Lcom/groupbyinc/flux/common/apache/lucene/spatial3d/geom/Membership; getBounds C(Lcom/groupbyinc/flux/common/apache/lucene/spatial3d/geom/Bounds;)V Ccom/groupbyinc/flux/common/apache/lucene/spatial3d/geom/PlanetModel
NORTH_POLE ? ? ?
! >com/groupbyinc/flux/common/apache/lucene/spatial3d/geom/Bounds# noTopLatitudeBound B()Lcom/groupbyinc/flux/common/apache/lucene/spatial3d/geom/Bounds;%&$' noLongitudeBound)&$* ?(Lcom/groupbyinc/flux/common/apache/lucene/spatial3d/geom/GeoPoint;)Lcom/groupbyinc/flux/common/apache/lucene/spatial3d/geom/Bounds; c,$-
SOUTH_POLE/ ? 0 noBottomLatitudeBound2&$3
MIN_X_POLE5 ? 6
MAX_X_POLE8 ? 9
MIN_Y_POLE; ? <
MAX_Y_POLE> ? ? addPlane(Lcom/groupbyinc/flux/common/apache/lucene/spatial3d/geom/PlanetModel;Lcom/groupbyinc/flux/common/apache/lucene/spatial3d/geom/Plane;[Lcom/groupbyinc/flux/common/apache/lucene/spatial3d/geom/Membership;)Lcom/groupbyinc/flux/common/apache/lucene/spatial3d/geom/Bounds;AB$C addIntersectionJ(Lcom/groupbyinc/flux/common/apache/lucene/spatial3d/geom/PlanetModel;Lcom/groupbyinc/flux/common/apache/lucene/spatial3d/geom/Plane;Lcom/groupbyinc/flux/common/apache/lucene/spatial3d/geom/Plane;[Lcom/groupbyinc/flux/common/apache/lucene/spatial3d/geom/Membership;)Lcom/groupbyinc/flux/common/apache/lucene/spatial3d/geom/Bounds;EF$G nextEdge @Lcom/groupbyinc/flux/common/apache/lucene/spatial3d/geom/Bounds; outsideDistance M(Lcom/groupbyinc/flux/common/apache/lucene/spatial3d/geom/DistanceStyle;DDD)D? Ecom/groupbyinc/flux/common/apache/lucene/spatial3d/geom/DistanceStyleO computeDistance H(Lcom/groupbyinc/flux/common/apache/lucene/spatial3d/geom/GeoPoint;DDD)DQRPS ?(Lcom/groupbyinc/flux/common/apache/lucene/spatial3d/geom/PlanetModel;Lcom/groupbyinc/flux/common/apache/lucene/spatial3d/geom/Plane;DDD[Lcom/groupbyinc/flux/common/apache/lucene/spatial3d/geom/Membership;)DQUPV computeOutsideDistanceXL ?Y newDist edgePoint edgePlane holeDistance
distanceStyle GLcom/groupbyinc/flux/common/apache/lucene/spatial3d/geom/DistanceStyle; minimumDistance equalsb `
c
?c ^c o Ljava/lang/Object; other hashCodej m
k ^k result GeoConvexPolygon: {planetmodel=o , points=q , internalEdges=s u , holes=w java/lang/Stringy }{ Signature Code LocalVariableTable LocalVariableTypeTable LineNumberTable ?(Lcom/groupbyinc/flux/common/apache/lucene/spatial3d/geom/PlanetModel;Ljava/util/List;)V ?(Lcom/groupbyinc/flux/common/apache/lucene/spatial3d/geom/PlanetModel;Ljava/util/List;Ljava/util/List;)V ?(Lcom/groupbyinc/flux/common/apache/lucene/spatial3d/geom/PlanetModel;Ljava/util/List;Ljava/util/BitSet;Z)V(Lcom/groupbyinc/flux/common/apache/lucene/spatial3d/geom/PlanetModel;Ljava/util/List;Ljava/util/List;Ljava/util/BitSet;Z)V ?(Lcom/groupbyinc/flux/common/apache/lucene/spatial3d/geom/PlanetModel;DDLjava/util/List;)V
StackMapTable
SourceFile InnerClasses
}
} } } } ~ \ *+,? "? # $ % &