Package com.google.gwt.touch.client
Class Point
java.lang.Object
com.google.gwt.touch.client.Point
A simple point class.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionDivide this pointPointby specified point and return the result.booleandoublegetX()Get the x value of the point.doublegetY()Get the y value of the point.inthashCode()Subtract the specifiedPointfrom this point and return the result.Multiple this pointPointby specified point and return the result.Add the specifiedPointto 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
-