Edge

data class Edge(val startVertex: Int, val endVertex: Int, val controlPoint1: MapPoint, val controlPoint2: MapPoint, val distance: Double, val flags: Set<String> = emptySet(), val isBidirectional: Boolean = true, val terrainId: TerrainId = TerrainId.Default)

Constructors

Link copied to clipboard
constructor(startVertex: Int, endVertex: Int, controlPoint1: MapPoint, controlPoint2: MapPoint, distance: Double, flags: Set<String> = emptySet(), isBidirectional: Boolean = true, terrainId: TerrainId = TerrainId.Default)

Properties

Link copied to clipboard

The coordinates of the first control point forming a cubic Bezier curve

Link copied to clipboard

The coordinates of the second control point forming a cubic Bezier curve

Link copied to clipboard

The distance of the edge

Link copied to clipboard

The vertex index at the end of the edge

Link copied to clipboard

The set of flags which apply to this edge

Link copied to clipboard

Whether the edge is bidirectional. If the edge is not bidirectional, the edge must be traversed from the start to end vertex only

Link copied to clipboard

The vertex index at the start of the edge

Link copied to clipboard

The layer that the edge should appear on