Class ParallelWays.ClosestPoint
- java.lang.Object
-
- org.openstreetmap.josm.actions.mapmode.ParallelWays.ClosestPoint
-
- Enclosing class:
- ParallelWays
public static final class ParallelWays.ClosestPoint extends java.lang.Object
The point of the source path closest to a given point, seeParallelWays.closestPoint(EastNorth).- Since:
- 19624
-
-
Field Summary
Fields Modifier and Type Field Description EastNorthpointthe closest point on the source pathEastNorthsegmentEndend of the source segment the closest point lies onEastNorthsegmentStartstart of the source segment the closest point lies ondoublesignedDistancedistance between the given point and the path; positive if the given point lies to the left of the path (in the direction of the reference way), i.e.
-
Constructor Summary
Constructors Constructor Description ClosestPoint(EastNorth point, EastNorth segmentStart, EastNorth segmentEnd, double signedDistance)
-
-
-
Field Detail
-
segmentStart
public final EastNorth segmentStart
start of the source segment the closest point lies on
-
segmentEnd
public final EastNorth segmentEnd
end of the source segment the closest point lies on
-
signedDistance
public final double signedDistance
distance between the given point and the path; positive if the given point lies to the left of the path (in the direction of the reference way), i.e. the sign matches the offset ofParallelWays.changeOffset(double)
-
-
Constructor Detail
-
ClosestPoint
ClosestPoint(EastNorth point, EastNorth segmentStart, EastNorth segmentEnd, double signedDistance)
-
-