PathSearchDistance
public struct PathSearchDistance : Equatable
Horizon path search distance configuration.
The search distance defines the extent of the path in the horizon.
For more information on horizon paths see HorizonEngine
.
For more information on horizon options see HorizonOptions
.
Important
This is a Public Preview API. It may be changed or removed at any time.-
Creates a distance with the maximum horizon length.
Throws
InitializationError
.invalidHorizonLength
ifmaxHorizonLength
is negative.Declaration
Swift
public init(maxHorizonLength: Measurement<UnitLength> = Defaults.maxHorizonLength) throws
Parameters
maxHorizonLength
The maximum length of the path in the horizon.
Defaults
.maxHorizonLength
if not specified.
-
Contains default values for
See morePathSearchDistance
.Declaration
Swift
public enum Defaults
-
An error that occurs during the creation of the instance.
See moreDeclaration
Swift
public enum InitializationError : Error