public class Point
extends java.lang.Object
implements java.lang.Cloneable
Constructor and Description |
---|
Point(float x,
float y)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
Point |
clone() |
float |
getX()
Return the x position.
|
float |
getY()
Return the y position.
|
void |
setX(float x)
Set the x position.
|
void |
setY(float y)
Set the y position.
|
public Point(float x, float y)
x
- the x positiony
- the y positionpublic void setX(float x)
x
- the x positionpublic float getX()
public void setY(float y)
y
- the y positionpublic float getY()
public Point clone()
clone
in class java.lang.Object
Copyright © 2021, 2022 Herve Girod. All Rights Reserved. Documentation and source under the BSD 3-Clause licence