|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.infomatiq.jsi.Point
public class Point
Currently hardcoded to 2 dimensions, but could be extended.
| Field Summary | |
|---|---|
float |
x
The (x, y) coordinates of the point. |
float |
y
The (x, y) coordinates of the point. |
| Constructor Summary | |
|---|---|
Point(float x,
float y)
Constructor. |
|
| Method Summary | |
|---|---|
void |
set(Point other)
Copy from another point into this one |
String |
toString()
Print as a string in format "(x, y)" |
int |
xInt()
|
int |
yInt()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public float x
public float y
| Constructor Detail |
|---|
public Point(float x,
float y)
x - The x coordinate of the pointy - The y coordinate of the point| Method Detail |
|---|
public void set(Point other)
public String toString()
toString in class Objectpublic int xInt()
public int yInt()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||