Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.infomatiq.jsi
Class Point

    java.lang.Object
      com.infomatiq.jsi.Point

    public class Point

extends java.lang.Object

Currently hardcoded to 2 dimensions, but could be extended.

Version:
  1.0b6
Author:
  aled@sourceforge.net

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
`java.lang.String` | `toString()` Print as a string in format "(x, y)"
`int` | `xInt()`
`int` | `yInt()`

Methods inherited from class java.lang.Object
`equals, getClass, hashCode, notify, notifyAll, wait, wait, wait`

Field Detail

### x

    public float x

  The (x, y) coordinates of the point.

### y

    public float y

  The (x, y) coordinates of the point.

Constructor Detail

### Point

    public Point(float x,
                 float y)

  Constructor.

  Parameters:
    `x` - The x coordinate of the point
    `y` - The y coordinate of the point

Method Detail

### set

    public void set(Point other)

  Copy from another point into this one

### toString

    public java.lang.String toString()

  Print as a string in format "(x, y)"

  Overrides:
    `toString` in class `java.lang.Object`

### xInt

    public int xInt()

  Returns:
    X coordinate rounded to an int

### yInt

    public int yInt()

  Returns:
    Y coordinate rounded to an int

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD