Package com.google.gwt.touch.client
Class Point
- java.lang.Object
-
- com.google.gwt.touch.client.Point
-
public class Point extends java.lang.ObjectA simple point class.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Pointdiv(Point c)Divide this pointPointby specified point and return the result.booleanequals(java.lang.Object obj)doublegetX()Get the x value of the point.doublegetY()Get the y value of the point.inthashCode()Pointminus(Point c)Subtract the specifiedPointfrom this point and return the result.Pointmult(Point c)Multiple this pointPointby specified point and return the result.Pointplus(Point c)Add the specifiedPointto this point and return the result.java.lang.StringtoString()
-
-
-
Constructor Detail
-
Point
public Point()
-
Point
public Point(double x, double y)
-
Point
public Point(Point c)
-
-
Method Detail
-
div
public Point div(Point c)
- Parameters:
c- the value by which to divide- Returns:
- the resulting point
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.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:
hashCodein classjava.lang.Object
-
minus
public Point minus(Point c)
- Parameters:
c- the value to subtract- Returns:
- the resulting point
-
mult
public Point mult(Point c)
- Parameters:
c- the value by which to multiply- Returns:
- the resulting point
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-