Package com.treemap.swing.voronoi

# Class Point2i

java.lang.Object
com.treemap.swing.voronoi.Tuple2i
com.treemap.swing.voronoi.Point2i

public class Point2i extends Tuple2i
A point in 2D space represented by x and y coordinate asn doubles

- ## Field Summary

  ### Fields inherited from class com.treemap.swing.voronoi.Tuple2i

  `x, y`

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `Point2i()`
  `Point2i(int x, int y)`
  `Point2i(Point2i location)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `double`
  `distance(Point2i p)`
  `double`
  `distanceSquared(Point2i p)`
  `double`
  `getDistanceSquared(int x, int y)`

  ### Methods inherited from class com.treemap.swing.voronoi.Tuple2i

  `add, scale, set, set, sub, sub, toString`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- ## Constructor Details

  - ### Point2i

    public Point2i()

  - ### Point2i

    public Point2i(int x, int y)

  - ### Point2i

    public Point2i(Point2i location)

- ## Method Details

  - ### distanceSquared

    public double distanceSquared(Point2i p)

  - ### distance

    public double distance(Point2i p)

  - ### getDistanceSquared

    public double getDistanceSquared(int x, int y)