Pedestrian

public class Pedestrian : Vehicle

A pedestrian.

Important

This is a Public Preview API. It may be changed or removed at any time.
  • Declaration

    Swift

    public init(
        maxSpeed: Measurement<UnitSpeed>? = PEDESTRIAN_SPEED
    )

    Parameters

    maxSpeed

    Specifies the max speed fot the pedestrian.

Pedestrian

  • Copies the current Pedestrian with changes specified in build closure

    Declaration

    Swift

    public func copy(build: (inout Builder) -> ()) -> Pedestrian

    Parameters

    build

    This closure allows for change of Pedestrian values

    Return Value

    Pedestrian with the changes set on the closure

  • The Builder creates a new instance of Pedestrian with modified fields.

    Declaration

    Swift

    public struct Builder