Interface PointImmutable

All Superinterfaces:
Comparable<PointImmutable>, com.jogamp.common.type.WriteCloneable
All Known Implementing Classes:
Point

public interface PointImmutable extends com.jogamp.common.type.WriteCloneable, Comparable<PointImmutable>
Immutable Point interface
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Compares the square of the position.
    boolean
    Checks whether two points objects are equal.
    int
     
    int
     
    int
     

    Methods inherited from interface com.jogamp.common.type.WriteCloneable

    cloneMutable
  • Method Details

    • getX

      int getX()
    • getY

      int getY()
    • compareTo

      int compareTo(PointImmutable d)

      Compares the square of the position.

      Specified by:
      compareTo in interface Comparable<PointImmutable>
    • equals

      boolean equals(Object obj)
      Checks whether two points objects are equal. Two instances of PointReadOnly are equal if the two components y and x are equal.
      Overrides:
      equals in class Object
      Returns:
      true if the two points are equal; otherwise false.
    • hashCode

      int hashCode()
      Overrides:
      hashCode in class Object