Package com.google.gwt.touch.client
Class Point
java.lang.Object
com.google.gwt.touch.client.Point
A simple point class.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionDivide this pointPoint
by specified point and return the result.boolean
double
getX()
Get the x value of the point.double
getY()
Get the y value of the point.int
hashCode()
Subtract the specifiedPoint
from this point and return the result.Multiple this pointPoint
by specified point and return the result.Add the specifiedPoint
to this point and return the result.toString()
-
Constructor Details
-
Point
public Point() -
Point
public Point(double x, double y) -
Point
-
-
Method Details
-
div
- Parameters:
c
- the value by which to divide- Returns:
- the resulting point
-
equals
-
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() -
minus
- Parameters:
c
- the value to subtract- Returns:
- the resulting point
-
mult
- Parameters:
c
- the value by which to multiply- Returns:
- the resulting point
-
plus
- Parameters:
c
- the value to add- Returns:
- the resulting point
-
toString
-