Coordinate
public class Coordinate : Navigatable, Focusable, Indexed, Deserializable
extension Coordinate: Hashable
extension Coordinate: Position
                A coordinate represents a 3-dimensional position that is in reference to a a specific Map’s origin. A Coordinate is different from just a vector in the way that it is tagged to only pertain to a single map.
- 
                  
                  
a convenience way to get the XY coordinate from the position vector
Declaration
Swift
public var vector2: Vector2 { get } - 
                  
                  
a convenience way to get the X coordinate from the position vector
Declaration
Swift
public var x: Float { get } - 
                  
                  
a convenience way to get the Y coordinate from the position vector
Declaration
Swift
public var y: Float { get } - 
                  
                  
a convenience way to get the Z coordinate from the position vector
Declaration
Swift
public var z: Float { get } - 
                  
                  
The location of the map relative to a Map’s origin.
Declaration
Swift
public var vector: Vector3 { get } - 
                  
                  
Venue that this coordinate belongs to
Declaration
Swift
public weak var venue: Venue? { get set } - 
                  
                  
Map that this coordinate belongs to
Declaration
Swift
public var map: Map { get } - 
                  
                  
Initialize a
Coordinateadhering theDeserializableprotocolDeclaration
Swift
public required init(from buffer: inout BinaryDecoder) throws - 
                  
                  
Returns the Core Location coordinate for this Coordinate
Declaration
Swift
public func toCLLocation() -> CLLocationCoordinate2D - 
                  
                  
Returns the 2D euclidean distance in meters from this Coordinate to another Coordinate.
Declaration
Swift
public func meters(from coordinate: Coordinate) -> FloatParameters
coordinateThe other coordinate in the distance calculation
 - 
                  
                  
Returns the 2D euclidean distance in meters from this Coordinate to the closest point on the edge of a Polygon. If negative the Coordinate is inside the Polygon, if positive the Coordinate is outside.
Declaration
Swift
public func meters(from polygon: Polygon) -> FloatParameters
polygonThe polygon to be used in the distance calculation
 - 
                  
                  
Returns the 2D euclidean distance in meters from this Coordinate to the closest point on a path represented by an array of Coordinate line segments.
Declaration
Swift
public func meters(from path: [Coordinate]) -> FloatParameters
pathAn array of Coordinates that make up the line segments of the path
 - 
                  
                  
Returns true if the Coordinate is inside the polygon in 2D space. Returns false if outside.
Declaration
Swift
public func isInside(_ polygon: Polygon) -> BoolParameters
polygonThe polygon to be used in the bounds calculation
 
View on GitHub
        Coordinate Class Reference