Class Point

java.lang.Object
com.flir.thermalsdk.image.Point

public class Point extends Object
Defines an Point with an X and Y value. Default coordinates are 0,0.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    final int
     
    final int
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    Point(int x, int y)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    final boolean
    equals(int x, int y)
     
    boolean
     
    int
     
    final Point
    Create a new Point with negated x y, NB original point is NOT changed
    final Point
    offset(int dx, int dy)
    Create a new Point with x y offset, NB original point is NOT changed
     

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • x

      public final int x
    • y

      public final int y
  • Constructor Details

    • Point

      public Point(int x, int y)
  • Method Details

    • offset

      public final Point offset(int dx, int dy)
      Create a new Point with x y offset, NB original point is NOT changed
      Parameters:
      dx - X offset delta value from the original Point i.e. if original X value is 3 and the new should be 5 the argument value should be 5-3 = 2
      dy - Y offset delta value from the original Point i.e. if original Y value is 6 and the new should be 5 the argument value should be 5-6 = -1
      Returns:
      a new Point with the values offset
    • negate

      public final Point negate()
      Create a new Point with negated x y, NB original point is NOT changed
      Returns:
      a Point with negated values
    • equals

      public final boolean equals(int x, int y)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object