LocationDirection
extension LocationDirection
-
Returns a normalized number given min and max bounds.
Declaration
Swift
public func wrap(min minimumValue: LocationDirection, max maximumValue: LocationDirection) -> LocationDirection
-
Returns the smaller difference between the receiver and another direction.
To obtain the larger difference between the two directions, subtract the return value from 360°.
Declaration
Swift
public func difference(from beta: LocationDirection) -> LocationDirection