|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.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 pointMethod Detail |
---|
public void set(Point other)
public String toString()
toString
in class Object
public int xInt()
public int yInt()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |