Point
Leave feedback
On this page
Inheritance: java.lang.Object
public class Point
Represents point.
| Constructor | 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. |
| Method | Description |
|---|---|
| isPointCollectionsEqual(List |
|
| opEquality(Point left, Point right) | Compares two Point objects. |
| opInequality(Point left, Point right) | Compares two Point objects. |
| equals(Point obj1, Point obj2) | |
| getX() | Gets or sets the x. |
| setX(float value) | Gets or sets the x. |
| getY() | Gets or sets the y. |
| setY(float value) | Gets or sets the y. |
| equals(Object obj) | Determines whether the specified point is equal to the current point. |
| hashCode() | Serves as the default hash function. |
| toString() |
public Point()
public Point(float x, float y)
Initializes a new instance of the Point struct.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| x | float | The x. |
| y | float | The y. |
public Point(Point point)
Initializes a new instance of Point class.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| point | Point | The point source. |
public static boolean isPointCollectionsEqual(List<Point> points1, List<Point> points2)
Parameters:
| Parameter | Type | Description |
|---|---|---|
| points1 | java.util.List<com.groupdocs.annotation.models.Point> | |
| points2 | java.util.List<com.groupdocs.annotation.models.Point> |
Returns: boolean
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.
Parameters:
Returns: boolean - true if the Point.X and Point.Y values of left and right are equal; otherwise, false.
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.
Parameters:
Returns: boolean - true if the Point.X and Point.Y values of left and right are not equal; otherwise, false.
public static boolean equals(Point obj1, Point obj2)
Parameters:
Returns: boolean
public final float getX()
Gets or sets the x.
Value: The x.
Returns: float -
public final void setX(float value)
Gets or sets the x.
Value: The x.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | float |
public final float getY()
Gets or sets the y.
Value: The y.
Returns: float -
public final void setY(float value)
Gets or sets the y.
Value: The y.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | float |
public boolean equals(Object obj)
Determines whether the specified point is equal to the current point.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| obj | java.lang.Object | The point to compare with the current point. |
Returns: boolean - if the specified point is equal to the current point; otherwise, .
public int hashCode()
Serves as the default hash function.
Returns: int - A hash code for the current point.
public String toString()
Returns: java.lang.String
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.