Package | Description |
---|---|
com.yworks.yfiles.algorithms |
Modifier and Type | Method and Description |
---|---|
Point2D |
Point2D.clone()
Creates a new instance of this class that has the same values as this objects.
|
Modifier and Type | Method and Description |
---|---|
double |
Point2D.distance(Point2D p)
Calculates the distance between this points and another one.
|
double |
Point2D.distanceSq(Point2D p)
Calculates the squared distance between this points and another one.
|
void |
Rectangle2D.setFrameFromCenter(Point2D center,
Point2D corner)
Sets the outer bounds of this rectangle based on the specified new center and corner.
|
void |
Rectangle2D.setFrameFromDiagonal(Point2D p1,
Point2D p2)
Sets the outer bounds of this rectangle based on the end points of one of its diagonals.
|
void |
Point2D.setLocation(Point2D value)
Sets the location of this point to the same values as for the given point.
|