MBNNValueOnEdge.h 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. // This file is generated and will be overwritten automatically.
  2. #import <Foundation/Foundation.h>
  3. NS_SWIFT_NAME(ValueOnEdge)
  4. __attribute__((visibility ("default")))
  5. @interface MBNNValueOnEdge : NSObject
  6. // This class provides custom init which should be called
  7. - (nonnull instancetype)init NS_UNAVAILABLE;
  8. // This class provides custom init which should be called
  9. + (nonnull instancetype)new NS_UNAVAILABLE;
  10. - (nonnull instancetype)initWithShapeIndex:(float)shapeIndex
  11. percentAlong:(double)percentAlong
  12. value:(double)value;
  13. /**
  14. * Position on edge is represented as a shape index.
  15. * Integer part is an index of edge segment and fraction
  16. * is a position on the segment: 0 - left point, 1 - right point,
  17. * 0.5 - in the middle between the segment points.
  18. * Ex.: 3.5 means the middle the the 3rd segment on the Edge shape, shape has more then 4 points
  19. */
  20. @property (nonatomic, readonly) float shapeIndex;
  21. /**
  22. * Position along edge shape [0-1].
  23. * The value's added for compliance with Navigator interface, functionally it duplicates `shapeIndex`
  24. */
  25. @property (nonatomic, readonly) double percentAlong;
  26. /** Floating point value, e.g. curvature in 1/m or slope as {elevation diff}/{horizontal length} */
  27. @property (nonatomic, readonly) double value;
  28. - (BOOL)isEqualToValueOnEdge:(nonnull MBNNValueOnEdge *)other;
  29. @end