| Constructor and Description |
|---|
Point2D() |
Point2D(double x,
double y)
Initializes a new instance of the
Point2D class. |
| Modifier and Type | Method and Description |
|---|---|
double |
distance(Point2D point2) |
static double |
distance(Point2D point1,
Point2D point2)
Gets distance between points
|
boolean |
equals(Object obj) |
boolean |
equals(Point2D other) |
double |
getX()
Gets or sets the x.
|
double |
getY()
Gets or sets the y.
|
int |
hashCode() |
static boolean |
op_Equality(Point2D left,
Point2D right) |
static boolean |
op_Inequality(Point2D left,
Point2D right) |
void |
setX(double value)
Gets or sets the x.
|
void |
setY(double value)
Gets or sets the y.
|
public Point2D()
public Point2D(double x,
double y)
Initializes a new instance of the Point2D class.
x - The x ordinate.y - The y ordinate.public final double getX()
Gets or sets the x.
public final void setX(double value)
Gets or sets the x.
public final double getY()
Gets or sets the y.
public final void setY(double value)
Gets or sets the y.
public static double distance(Point2D point1, Point2D point2)
Gets distance between points
point1 - First pointpoint2 - Second pointpublic final double distance(Point2D point2)
public boolean equals(Point2D other)
public boolean equals(Object obj)
Copyright (c) 2008-2025 Aspose Pty Ltd. All Rights Reserved.