public class Point extends AbstractPoint implements Serializable
Modifier and Type | Field and Description |
---|---|
float |
x
The x-coordinate of the point.
|
float |
y
The y-coordinate of the point.
|
Constructor and Description |
---|
Point()
Constructs a point at (0, 0).
|
Point(float x,
float y)
Constructs a point at the specified coordinates.
|
Point(XY p)
Constructs a point with coordinates equal to the supplied point.
|
Modifier and Type | Method and Description |
---|---|
Point |
addLocal(float dx,
float dy)
Translates this point by the specified offset.
|
Point |
multLocal(float s)
Multiplies this point by a scale factor.
|
Point |
rotateLocal(float angle)
Rotates this point in-place by the specified angle.
|
Point |
set(float x,
float y)
Sets the coordinates of this point to the supplied values.
|
Point |
set(XY p)
Sets the coordinates of this point to be equal to those of the supplied point.
|
Point |
subtractLocal(float x,
float y)
Subtracts the supplied x/y from this point.
|
float |
x()
The x coordinate.
|
float |
y()
The y coordinate.
|
public float x
public float y
public Point()
public Point(float x, float y)
public Point(XY p)
public Point set(XY p)
public Point set(float x, float y)
public Point multLocal(float s)
public Point addLocal(float dx, float dy)
public Point rotateLocal(float angle)
public Point subtractLocal(float x, float y)
public float x()
XY
Copyright © 2017. All rights reserved.