Class Point

java.lang.Object
ai.djl.modality.cv.output.Point
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
Joints.Joint

public class Point extends Object implements Serializable
A point representing a location in (x,y) coordinate space, specified in double precision.
See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
    Point(double x, double y)
    Constructs and initializes a point at the specified (x,y) location in the coordinate space.
  • Method Summary

    Modifier and Type
    Method
    Description
    double
    Returns the X coordinate of this Point in double precision.
    double
    Returns the Y coordinate of this Point in double precision.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • Point

      public Point(double x, double y)
      Constructs and initializes a point at the specified (x,y) location in the coordinate space.
      Parameters:
      x - the X coordinate of the newly constructed Point
      y - the Y coordinate of the newly constructed Point
  • Method Details

    • getX

      public double getX()
      Returns the X coordinate of this Point in double precision.
      Returns:
      the X coordinate of this Point
    • getY

      public double getY()
      Returns the Y coordinate of this Point in double precision.
      Returns:
      the Y coordinate of this Point
    • toString

      public String toString()
      Overrides:
      toString in class Object