Projection.
Hashable
public static func == (lhs: Projection, rhs: Projection) -> Bool
Returns a Boolean value indicating whether two values are equal.
public func hash(into hasher: inout Hasher)
Hashes the essential components of this value by passing them to the given hasher.
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.
point
ScreenPoint
GeoPoint?
public func mapToScreen( point: GeoPoint ) -> ScreenPoint?
GeoPoint
ScreenPoint?
public func mapToScreen( point: GeoPointWithElevation ) -> ScreenPoint?
Calculates a screen point corresponding to the specified map point with elevation.The function returns an empty value:
GeoPointWithElevation
public func screenToMapClipped( point: ScreenPoint ) -> GeoPoint
Calculates the map point closest to the projection of the specified screen point.