Projection
Projection.
Extends:
Hashable
public static func == (lhs: Projection, rhs: Projection) -> Bool
Returns a Boolean value indicating whether two values are equal.
Methods
public func hash(into hasher: inout Hasher)
Hashes the essential components of this value by passing them to the given hasher.
Parameters
hasher
Hasher
Hasher to use when combining the components of this instance.
public func screenToMap(
point: ScreenPoint
) -> GeoPoint?
Calculates a map point at the specified screen point.
The function returns an empty value if the specified screen point is outside the map projection.
Parameters
public func mapToScreen(
point: GeoPoint
) -> ScreenPoint?
Calculates a screen point corresponding to the specified map point.
The function returns an empty value:
Parameters
public func mapToScreen(
point: GeoPointWithElevation
) -> ScreenPoint?
Calculates a screen point corresponding to the specified map point with elevation.
The function returns an empty value:
Parameters
public func screenToMapClipped(
point: ScreenPoint
) -> GeoPoint
Calculates the map point closest to the projection of the specified screen point.
Parameters