Class Point

java.lang.Object
com.google.gwt.touch.client.Point

public class Point extends Object
A simple point class.
  • Constructor Details

    • Point

      public Point()
    • Point

      public Point(double x, double y)
    • Point

      public Point(Point c)
  • Method Details

    • div

      public Point div(Point c)
      Divide this point Point by specified point and return the result. Does not modified this Point.
      Parameters:
      c - the value by which to divide
      Returns:
      the resulting point
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • getX

      public double getX()
      Get the x value of the point.
      Returns:
      the x value
    • getY

      public double getY()
      Get the y value of the point.
      Returns:
      the y value
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • minus

      public Point minus(Point c)
      Subtract the specified Point from this point and return the result. Does not modified this Point.
      Parameters:
      c - the value to subtract
      Returns:
      the resulting point
    • mult

      public Point mult(Point c)
      Multiple this point Point by specified point and return the result. Does not modified this Point.
      Parameters:
      c - the value by which to multiply
      Returns:
      the resulting point
    • plus

      public Point plus(Point c)
      Add the specified Point to this point and return the result. Does not modified this Point.
      Parameters:
      c - the value to add
      Returns:
      the resulting point
    • toString

      public String toString()
      Overrides:
      toString in class Object