Class VNPoint

All Implemented Interfaces:
NSCoding, NSObjectProtocol, NSSecureCoding, ObjCProtocol
Direct Known Subclasses:
VNDetectedPoint

public class VNPoint
extends NSObject
implements NSSecureCoding
Since:
Available in iOS 14.0 and later.
  • Constructor Details

    • VNPoint

      public VNPoint()
    • VNPoint

      protected VNPoint​(NSObject.Handle h, long handle)
    • VNPoint

      protected VNPoint​(NSObject.SkipInit skipInit)
    • VNPoint

      public VNPoint​(double x, double y)
    • VNPoint

      public VNPoint​(CGPoint location)
    • VNPoint

      public VNPoint​(NSCoder coder)
  • Method Details

    • getZeroPoint

      public static VNPoint getZeroPoint()
    • getLocation

      public CGPoint getLocation()
    • getX

      public double getX()
    • getY

      public double getY()
    • supportsSecureCoding

      public static boolean supportsSecureCoding()
    • distanceToPoint

      public double distanceToPoint​(VNPoint point)
    • init

      protected long init​(double x, double y)
    • init

      protected long init​(CGPoint location)
    • getPointByApplyingVector

      public static VNPoint getPointByApplyingVector​(VNVector vector, VNPoint point)
    • getDistance

      @Deprecated public static double getDistance​(VNPoint point1, VNPoint point2)
      Deprecated.
      Deprecated in iOS 14.0. Use -distanceToPoint:
      Since:
      Available in iOS 14.0 and later.
    • encode

      public void encode​(NSCoder coder)
      Specified by:
      encode in interface NSCoding
    • init

      protected long init​(NSCoder coder)