Package-level declarations

Functions

Link copied to clipboard
fun List<Vector2>.metro(closed: Boolean, directions: Int = 4, angleOffset: Double = 0.0, segmentPenalty: Double = 0.0, boundsWeight: Double = 0.0): List<Vector2>

Fits a polyline with segments in a limited set of directions to this sequence of points, using the path schematisation heuristic described in Dwyer, Hurst and Merrick, "A Fast and Simple Heuristic for Metro Map Path Simplification" (ISVC 2008).

fun Shape.metro(directions: Int = 4, angleOffset: Double = 0.0, segmentPenalty: Double = 0.0, boundsWeight: Double = 0.0, distanceTolerance: Double = 0.5, samplingDistance: Double = Double.POSITIVE_INFINITY): Shape

Schematizes this Shape in the style of a metro map: every contour is replaced by a polyline whose segments are all parallel to one of directions evenly spaced directions. See ShapeContour.metro.

fun ShapeContour.metro(directions: Int = 4, angleOffset: Double = 0.0, segmentPenalty: Double = 0.0, boundsWeight: Double = 0.0, distanceTolerance: Double = 0.5, samplingDistance: Double = Double.POSITIVE_INFINITY): ShapeContour

Schematizes this ShapeContour in the style of a metro map: the contour is replaced by a polyline whose segments are all parallel to one of directions evenly spaced directions (2: rectilinear, 3: hexilinear, 4: octilinear).