# Class Tuple2d

java.lang.Object
com.treemap.swing.voronoi.Tuple2d

Direct Known Subclasses:
  `Point2d, Vector2d`

public class Tuple2d extends Object

- ## Field Summary

  Fields
  Modifier and Type
  Field
  Description
  `double`
  `x`
  `double`
  `y`

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `Tuple2d()`
  `Tuple2d(double x, double y)`
  `Tuple2d(Tuple2d tuple2d)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `add(Tuple2d otherTuple)`
  `void`
  `scale(double scale)`
  `void`
  `set(double x, double y)`
  `void`
  `set(Tuple2d value)`
  `void`
  `sub(Tuple2d otherTuple)`
  `void`
  `sub(Tuple2d t1, Tuple2d t2)`
  `String`
  `toString()`

  ### Methods inherited from class Object

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

- ## Field Details

  - ### x

    public double x

  - ### y

    public double y

- ## Constructor Details

  - ### Tuple2d

    public Tuple2d()

  - ### Tuple2d

    public Tuple2d(double x, double y)

  - ### Tuple2d

    public Tuple2d(Tuple2d tuple2d)

- ## Method Details

  - ### set

    public void set(double x, double y)

  - ### set

    public void set(Tuple2d value)

  - ### sub

    public void sub(Tuple2d t1, Tuple2d t2)

  - ### sub

    public void sub(Tuple2d otherTuple)

  - ### add

    public void add(Tuple2d otherTuple)

  - ### toString

    public String toString()
    Overrides:
      `toString` in class `Object`

  - ### scale

    public void scale(double scale)