Coordinate
public class Coordinate : Decodable
extension Coordinate: Equatable
extension Coordinate: CustomDebugStringConvertible
extension Coordinate: CustomStringConvertible
extension Coordinate: Hashable
-
Declaration
Swift
public let location: CLLocation
-
Declaration
Swift
public let levels: [Float]
-
height from the floor of the defined level. Must be nil outdoor.
Declaration
Swift
public let heightFromFloor: CLLocationDistance?
-
Declaration
Swift
public var coordinate2D: CLLocationCoordinate2D { get }
-
Declaration
Swift
public var latitude: CLLocationDegrees { get }
-
Declaration
Swift
public var longitude: CLLocationDegrees { get }
-
altitude from sea level expressed in meters.
Declaration
Swift
public var altitude: CLLocationDistance? { get }
-
Declaration
Swift
public var isIndoor: Bool { get }
-
Declaration
Swift
public var isOutdoor: Bool { get }
-
Declaration
Swift
public var cartesian: Double3 { get }
-
Declaration
Swift
public var ecef: Double3 { get }
-
Declaration
Swift
public lazy var latitudeRadians: CLLocationDegrees { get set }
-
Declaration
Swift
public lazy var longitudeRadians: CLLocationDegrees { get set }
-
Declaration
Swift
public lazy var ecefToEnuRot: Quaternion { get set }
-
Declaration
Swift
public lazy var enuToEcefRot: Quaternion { get set }
-
Declaration
Swift
public lazy var ecefToEusRot: Quaternion { get set }
-
Declaration
Swift
public lazy var eusToEcefRot: Quaternion { get set }
-
Declaration
Swift
public required init(from decoder: Decoder) throws
-
Declaration
Swift
public init(location: CLLocation, levels: [Float] = [], heightFromFloor: CLLocationDistance? = nil)
-
Declaration
Swift
public convenience init( coordinate2D: CLLocationCoordinate2D, altitude: CLLocationDistance? = nil, levels: [Float] = [], heightFromFloor: CLLocationDistance? = nil )
-
Declaration
Swift
public convenience init(coordinate2D: CLLocationCoordinate2D, altitude: CLLocationDistance? = nil, level: Float)
-
Declaration
Swift
public convenience init(latitude: CLLocationDegrees, longitude: CLLocationDegrees, altitude: CLLocationDistance? = nil, levels: [Float] = [])
-
Declaration
Swift
public convenience init(latitude: CLLocationDegrees, longitude: CLLocationDegrees, altitude: CLLocationDistance? = nil, level: Float)
-
Declaration
Swift
public convenience init(ecef: Double3, levels: [Float] = [], heightFromFloor: CLLocationDistance? = nil)
-
Declaration
Swift
public convenience init(cartesian: Double3, levels: [Float] = [])
-
Adapted to cartesian coordinates using Spherical model
Seealso
Note
Ellipsoid model using ECEF seems to not work due to Earth radius factor
Declaration
Swift
public func getSegmentProjection(segment: Segment) -> Coordinate?
-
Declaration
Swift
public func distance(to coordinate: Coordinate) -> CLLocationDistance?
-
Declaration
Swift
public func direction(to coordinate: Coordinate) -> CLLocationDirection
-
Declaration
Swift
public func calculateCartesian() -> Double3
-
Declaration
Swift
public static func == (lhs: Coordinate, rhs: Coordinate) -> Bool
-
Declaration
Swift
public static func equals(_ lhs: Coordinate, _ rhs: Coordinate, eps: Double = GeoConstants.EPS_DEGREES, epsAlt: Double = GeoConstants.EPS_METERS) -> Bool
-
Declaration
Swift
public func equals(_ rhs: Coordinate, eps: Double = GeoConstants.EPS_DEGREES, epsAlt: Double = GeoConstants.EPS_METERS) -> Bool
-
Declaration
Swift
public var debugDescription: String { get }
-
Declaration
Swift
public var description: String { get }
-
Declaration
Swift
public func hash(into hasher: inout Hasher)
-
Declaration
Swift
func copy(location: CLLocation? = nil, levels: [Float]? = nil) -> Coordinate
-
Declaration
Swift
func copy(coordinate2D: CLLocationCoordinate2D? = nil, altitude: CLLocationDistance? = nil, levels: [Float]? = nil) -> Coordinate