FIRVisionPoint.h 707 B

1234567891011121314151617181920212223242526272829303132333435
  1. #import <Foundation/Foundation.h>
  2. NS_ASSUME_NONNULL_BEGIN
  3. /**
  4. * A 2D or 3D point in the image. A valid point must have both x and y coordinates. The point's
  5. * coordinates are in the same scale as the original image.
  6. */
  7. NS_SWIFT_NAME(VisionPoint)
  8. @interface FIRVisionPoint : NSObject
  9. /**
  10. * X coordinate. The value is float.
  11. */
  12. @property(nonatomic, readonly) NSNumber *x;
  13. /**
  14. * Y coordinate. The value is float.
  15. */
  16. @property(nonatomic, readonly) NSNumber *y;
  17. /**
  18. * Z coordinate (or depth). The value is float. Z is nil if it is a 2D point.
  19. */
  20. @property(nonatomic, readonly, nullable) NSNumber *z;
  21. /**
  22. * Unavailable.
  23. */
  24. - (instancetype)init NS_UNAVAILABLE;
  25. @end
  26. NS_ASSUME_NONNULL_END