Package com.flir.thermalsdk.image
Class Point
java.lang.Object
com.flir.thermalsdk.image.Point
Defines an Point with an X and Y value. Default coordinates are 0,0.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
equals
(int x, int y) boolean
int
hashCode()
final Point
negate()
Create a new Point with negated x y, NB original point is NOT changedfinal Point
offset
(int dx, int dy) Create a new Point with x y offset, NB original point is NOT changedtoString()
-
Field Details
-
x
public final int x -
y
public final int y
-
-
Constructor Details
-
Point
public Point(int x, int y)
-
-
Method Details
-
offset
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 = 2dy
- 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
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
-
hashCode
public int hashCode() -
toString
-