MockPositionObject

Objective-C


@interface MockPositionObject : NSObject

Swift

class MockPositionObject : NSObject

This class encapsulates mock position information.

  • Initializes and returns a newly allocated object using the model data.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithModelData:(nonnull void *)data;
  • Returns the model data.

    Declaration

    Objective-C

    - (nonnull void *)getModelData;
  • Initializes and returns a newly allocated object using the speed value. @details The speed is in m/s.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithSpeed:(double)speed;

    Swift

    init(speed: Double)
  • Initializes and returns a newly allocated object using the location and speed value. @details The speed is in m/s.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithLocation:(nonnull CoordinatesObject *)location
                                       speed:(double)speed;

    Swift

    init(location: CoordinatesObject, speed: Double)
  • Geographical latitude.

    Declaration

    Objective-C

    - (double)getLatitude;

    Swift

    func getLatitude() -> Double

    Return Value

    The latitude in degrees.

  • Geographical longitude.

    Declaration

    Objective-C

    - (double)getLongitude;

    Swift

    func getLongitude() -> Double

    Return Value

    The longitude in degrees.

  • Latitude and longitude.

    Declaration

    Objective-C

    - (nonnull CoordinatesObject *)getCoordinates;

    Swift

    func getCoordinates() -> CoordinatesObject

    Return Value

    Coordinate pair, each one in degrees.

  • Altitude above main sea level.

    Declaration

    Objective-C

    - (double)getAltitude;

    Swift

    func getAltitude() -> Double

    Return Value

    The altitude in meters.

  • Travel speed.

    Declaration

    Objective-C

    - (double)getSpeed;

    Swift

    func getSpeed() -> Double

    Return Value

    The speed, in m/s.