Package icyllis.modernui.graphics

# Class Point

java.lang.Object
icyllis.modernui.graphics.Point

public class Point extends Object
Represents a point holding two integer values.

- ## Field Summary

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

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `Point()`
  `Point(int x, int y)`
  `Point(Point p)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `Point`
  `copy()`
  `static Point`
  `copy(Point p)`
  `boolean`
  `equals(Object o)`
  `int`
  `hashCode()`
  `void`
  `negate()`
  `void`
  `offset(int dx, int dy)`
  `void`
  `set(int x, int y)`
  `void`
  `set(Point p)`
  `String`
  `toString()`

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

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

- ## Field Details

  - ### x

    public int x

  - ### y

    public int y

- ## Constructor Details

  - ### Point

    public Point()

  - ### Point

    public Point(int x, int y)

  - ### Point

    public Point(@NonNull Point p)

- ## Method Details

  - ### copy

    @NonNull public static Point copy(@Nullable Point p)

  - ### set

    public void set(int x, int y)

  - ### set

    public void set(@NonNull Point p)

  - ### negate

    public void negate()

  - ### offset

    public void offset(int dx, int dy)

  - ### hashCode

    public int hashCode()
    Overrides:
      `hashCode` in class `Object`

  - ### equals

    public boolean equals(Object o)
    Overrides:
      `equals` in class `Object`

  - ### toString

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

  - ### copy

    @NonNull public Point copy()