CLLocationCoordinate2D
Undocumented
-
Compares two coordinates and returns true if their latitude and longitudes are equal.
Declaration
Swift
public static func ==(left: CLLocationCoordinate2D, right: CLLocationCoordinate2D) -> Bool
-
Adds two coordinates, returning the coordinate resulting of adding each component independently.
Declaration
Swift
public static func +(left: CLLocationCoordinate2D, right: CLLocationCoordinate2D) -> CLLocationCoordinate2D
-
Subtracts two coordinates, returning the coordinate resulting of subtracting each component independently.
Declaration
Swift
public static func -(left: CLLocationCoordinate2D, right: CLLocationCoordinate2D) -> CLLocationCoordinate2D
-
Returns the coordinate resulting of dividing each component by given numeric value as a floating point number.
Declaration
Swift
public static func /(left: CLLocationCoordinate2D, right: Int) -> CLLocationCoordinate2D
-
Returns the coordinate resulting of dividing each component by given floating point number.
Declaration
Swift
public static func /(left: CLLocationCoordinate2D, right: Double) -> CLLocationCoordinate2D
-
Returns the coordinate resulting of multiplying each component by given numeric value as a floating point number.
Declaration
Swift
public static func *(left: CLLocationCoordinate2D, right: Int) -> CLLocationCoordinate2D
-
Returns the coordinate resulting of multiplying each component by given floating point number.
Declaration
Swift
public static func *(left: CLLocationCoordinate2D, right: Double) -> CLLocationCoordinate2D
-
Returns distance from this coordinate to given one.
Declaration
Swift
@available(* 1.2.0, *) public func distance(to coordinate: CLLocationCoordinate2D) -> Double
Parameters
coordinate
Coordinate to which distance will be computed.
Return Value
Distance using Pytagora’s theorem.