public class Point extends Object
Represents point.
| Constructor and Description |
|---|
Point() |
Point(float x,
float y)
Initializes a new instance of the
Point struct. |
Point(Point point)
Initializes a new instance of
Point class. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj)
Determines whether the specified point is equal to the current point.
|
static boolean |
equals(Point obj1,
Point obj2) |
float |
getX()
Gets or sets the x.
|
float |
getY()
Gets or sets the y.
|
int |
hashCode()
Serves as the default hash function.
|
static boolean |
isPointCollectionsEqual(List<Point> points1,
List<Point> points2) |
static boolean |
opEquality(Point left,
Point right)
Compares two Point objects.
|
static boolean |
opInequality(Point left,
Point right)
Compares two Point objects.
|
void |
setX(float value)
Gets or sets the x.
|
void |
setY(float value)
Gets or sets the y.
|
String |
toString() |
public Point()
public Point(float x,
float y)
Initializes a new instance of the Point struct.
x - The x.y - The y.public boolean equals(Object obj)
Determines whether the specified point is equal to the current point.
public final float getX()
Gets or sets the x.
Value: The x.public final float getY()
Gets or sets the y.
Value: The y.public int hashCode()
Serves as the default hash function.
public static boolean isPointCollectionsEqual(List<Point> points1, List<Point> points2)
public static boolean opEquality(Point left, Point right)
Compares two Point objects. The result specifies whether the values of the Point.X and Point.Y properties of the two Point objects are equal.
left - A Point to compare.right - A Point to compare.public static boolean opInequality(Point left, Point right)
Compares two Point objects. The result specifies whether the values of the Point.X and Point.Y properties of the two Point objects are not equal.
left - A Point to compare.right - A Point to compare.public final void setX(float value)
Gets or sets the x.
Value: The x.value - public final void setY(float value)
Gets or sets the y.
Value: The y.value - Copyright © 2024. All rights reserved.