
com.groupbyinc.flux.common.apache.lucene.spatial3d.geom.GeoDegeneratePath$PathSegment.class Maven / Gradle / Ivy
???? 4 ? Ucom/groupbyinc/flux/common/apache/lucene/spatial3d/geom/GeoDegeneratePath$PathSegment java/lang/Object GeoDegeneratePath.java Icom/groupbyinc/flux/common/apache/lucene/spatial3d/geom/GeoDegeneratePath PathSegment start BLcom/groupbyinc/flux/common/apache/lucene/spatial3d/geom/GeoPoint; end fullDistanceCache Ljava/util/Map; jLjava/util/Map; normalizedConnectingPlane ?Lcom/groupbyinc/flux/common/apache/lucene/spatial3d/geom/Plane; startCutoffPlane DLcom/groupbyinc/flux/common/apache/lucene/spatial3d/geom/SidedPlane; endCutoffPlane connectingPlanePoints C[Lcom/groupbyinc/flux/common/apache/lucene/spatial3d/geom/GeoPoint; (Lcom/groupbyinc/flux/common/apache/lucene/spatial3d/geom/PlanetModel;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/Plane;)V ()V
java/util/HashMap
" $ Bcom/groupbyinc/flux/common/apache/lucene/spatial3d/geom/SidedPlane & ?(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 (
' ) + - @com/groupbyinc/flux/common/apache/lucene/spatial3d/geom/GeoPoint / 1 this WLcom/groupbyinc/flux/common/apache/lucene/spatial3d/geom/GeoDegeneratePath$PathSegment; planetModel ELcom/groupbyinc/flux/common/apache/lucene/spatial3d/geom/PlanetModel; fullPathDistance J(Lcom/groupbyinc/flux/common/apache/lucene/spatial3d/geom/DistanceStyle;)D
java/util/Map 9 get &(Ljava/lang/Object;)Ljava/lang/Object; ; < : = java/lang/Double ? x D A B 0 C y E B 0 F z H B 0 I Ecom/groupbyinc/flux/common/apache/lucene/spatial3d/geom/DistanceStyle K computeDistance H(Lcom/groupbyinc/flux/common/apache/lucene/spatial3d/geom/GeoPoint;DDD)D M N L O toAggregationForm (D)D Q R L S (D)V U
@ V put 8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; X Y : Z doubleValue ()D \ ]
@ ^ java/lang/Throwable ` dist Ljava/lang/Double;
distanceStyle GLcom/groupbyinc/flux/common/apache/lucene/spatial3d/geom/DistanceStyle; isWithin C(Lcom/groupbyinc/flux/common/apache/lucene/spatial3d/geom/Vector;)Z f g
' h =com/groupbyinc/flux/common/apache/lucene/spatial3d/geom/Plane j evaluateIsZero l g
k m point @Lcom/groupbyinc/flux/common/apache/lucene/spatial3d/geom/Vector; (DDD)Z f q
' r l q
k t pathCenterDistance ?(Lcom/groupbyinc/flux/common/apache/lucene/spatial3d/geom/PlanetModel;Lcom/groupbyinc/flux/common/apache/lucene/spatial3d/geom/DistanceStyle;DDD)D? k F k I k C java/lang/Math } sqrt R
~ ? abs ? R
~ ?=q???-? Ccom/groupbyinc/flux/common/apache/lucene/spatial3d/geom/PlanetModel ? (DDDD)V ?
k ? Bcom/groupbyinc/flux/common/apache/lucene/spatial3d/geom/Membership ? findIntersections(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/GeoPoint; ? ?
k ? java/lang/RuntimeException ? java/lang/StringBuilder ?
? *Can't find world intersection for point x= ? append -(Ljava/lang/String;)Ljava/lang/StringBuilder; ? ?
? ? (D)Ljava/lang/StringBuilder; ? ?
? ? y= ? z= ? toString ()Ljava/lang/String; ? ?
? ? (Ljava/lang/String;)V ?
? ? thePoint perpX perpY perpZ magnitude
normFactor normalizedPerpPlane intersectionPoints nearestPathDistance pathDistance
r aggregateDistances (DD)D ? ? L ? outsideDistance ?(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;)D M ? L ? min ? ?
~ ? distance
startDistance endDistance
intersects(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/Membership;)Z?(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 ? ?
k ? p
notablePoints bounds E[Lcom/groupbyinc/flux/common/apache/lucene/spatial3d/geom/Membership; E(Lcom/groupbyinc/flux/common/apache/lucene/spatial3d/geom/GeoShape;)Z @com/groupbyinc/flux/common/apache/lucene/spatial3d/geom/GeoShape ? ?(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 ? ? ? ? geoShape BLcom/groupbyinc/flux/common/apache/lucene/spatial3d/geom/GeoShape; getBounds ?(Lcom/groupbyinc/flux/common/apache/lucene/spatial3d/geom/PlanetModel;Lcom/groupbyinc/flux/common/apache/lucene/spatial3d/geom/Bounds;)V >com/groupbyinc/flux/common/apache/lucene/spatial3d/geom/Bounds ? addPoint ?(Lcom/groupbyinc/flux/common/apache/lucene/spatial3d/geom/GeoPoint;)Lcom/groupbyinc/flux/common/apache/lucene/spatial3d/geom/Bounds; ? ? ? ? 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; ? ? ? ? @Lcom/groupbyinc/flux/common/apache/lucene/spatial3d/geom/Bounds; Signature Code LocalVariableTable LineNumberTable
StackMapTable
SourceFile InnerClasses
? ? ? N*? *? Y? ? *,? !*-? #*? %*? 'Y-,? *? ,*? 'Y,-? *? .*? 0Y,SY-S? 2? ? 4 N 3 4 N 5 6 N
N
N ? &