MBNNLineDistanceInfo.h 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. // This file is generated and will be overwritten automatically.
  2. #import <Foundation/Foundation.h>
  3. /**
  4. * Represents the current distance to a road object of type "Line".
  5. * The structure is immutable, to get an updated info you should get a new instance of the info
  6. * via ElectronicHorizonObserver.
  7. */
  8. NS_SWIFT_NAME(LineDistanceInfo)
  9. __attribute__((visibility ("default")))
  10. @interface MBNNLineDistanceInfo : NSObject
  11. // This class provides custom init which should be called
  12. - (nonnull instancetype)init NS_UNAVAILABLE;
  13. // This class provides custom init which should be called
  14. + (nonnull instancetype)new NS_UNAVAILABLE;
  15. - (nonnull instancetype)initWithDistanceToEntry:(double)distanceToEntry
  16. distanceToExit:(double)distanceToExit
  17. distanceToEnd:(double)distanceToEnd
  18. entryFromStart:(BOOL)entryFromStart
  19. length:(double)length;
  20. /**
  21. * Distance in meters from the current position to the entry point.
  22. * Negative if entry is behind the current position while we are inside line object.
  23. */
  24. @property (nonatomic, readonly) double distanceToEntry;
  25. /** Distance to the exit of line in meters. */
  26. @property (nonatomic, readonly) double distanceToExit;
  27. /** Distance to the end of line in meters. */
  28. @property (nonatomic, readonly) double distanceToEnd;
  29. /** 'true' if object will be entered via it's start */
  30. @property (nonatomic, readonly, getter=isEntryFromStart) BOOL entryFromStart;
  31. /** Length of the line */
  32. @property (nonatomic, readonly) double length;
  33. @end