Package com.treemap.tagcloud

# Class Point2d

java.lang.Object
com.treemap.tagcloud.Tuple2d
com.treemap.tagcloud.Point2d

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

- ## Field Summary

  ### Fields inherited from class com.treemap.tagcloud.Tuple2d

  `x, y`

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `Point2d()`
  `Point2d(double x, double y)`
  `Point2d(Point2d location)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `double`
  `distance(Point2d p)`
  `double`
  `distanceSquared(Point2d p)`

  ### Methods inherited from class com.treemap.tagcloud.Tuple2d

  `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

  - ### Point2d

    public Point2d()

  - ### Point2d

    public Point2d(double x, double y)

  - ### Point2d

    public Point2d(Point2d location)

- ## Method Details

  - ### distanceSquared

    public double distanceSquared(Point2d p)

  - ### distance

    public double distance(Point2d p)