Lane

class Lane : NSObject

Single lane object.

  • Direction of the lane

    Declaration

    Swift

    var direction: LaneDirection { get }
  • Left edge of the lane

    Declaration

    Swift

    var leftEdge: LaneEdge { get }
  • Right edge of the lane

    Declaration

    Swift

    var rightEdge: LaneEdge { get }
  • Checks if the lane contains specific world coordinate.

    Declaration

    Swift

    func contains(worldCoordinate: WorldCoordinate) -> Bool

    Parameters

    worldCoordinate

    The world coordinate to check.

    Return Value

    Returns true if MBVLane contains worldCoordinate, otherwise returns false.