Point
Inheritance: java.lang.Object
public class Point
Represents point.
Constructors
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. |
Methods
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() |
Point()
public Point()
Point(float x, float y)
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. |
Point(Point point)
public Point(Point point)
Initializes a new instance of Point class.
Parameters:
Parameter | Type | Description |
---|---|---|
point | Point | The point source. |
isPointCollectionsEqual(List points1, List points2)
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
opEquality(Point left, Point right)
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:
Parameter | Type | Description |
---|---|---|
left | Point | A Point to compare. |
right | Point | A Point to compare. |
Returns: boolean - true if the Point.X and Point.Y values of left and right are equal; otherwise, false.
opInequality(Point left, Point right)
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:
Parameter | Type | Description |
---|---|---|
left | Point | A Point to compare. |
right | Point | A Point to compare. |
Returns: boolean - true if the Point.X and Point.Y values of left and right are not equal; otherwise, false.
equals(Point obj1, Point obj2)
public static boolean equals(Point obj1, Point obj2)
Parameters:
Parameter | Type | Description |
---|---|---|
obj1 | Point | |
obj2 | Point |
Returns: boolean
getX()
public final float getX()
Gets or sets the x.
Value: The x.
Returns: float -
setX(float value)
public final void setX(float value)
Gets or sets the x.
Value: The x.
Parameters:
Parameter | Type | Description |
---|---|---|
value | float |
getY()
public final float getY()
Gets or sets the y.
Value: The y.
Returns: float -
setY(float value)
public final void setY(float value)
Gets or sets the y.
Value: The y.
Parameters:
Parameter | Type | Description |
---|---|---|
value | float |
equals(Object obj)
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, .
hashCode()
public int hashCode()
Serves as the default hash function.
Returns: int - A hash code for the current point.
toString()
public String toString()
Returns: java.lang.String