Package com.google.gwt.touch.client
Class Point
- java.lang.Object
-
- com.google.gwt.touch.client.Point
-
public class Point extends java.lang.Object
A simple point class.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Point
div(Point c)
Divide this pointPoint
by specified point and return the result.boolean
equals(java.lang.Object obj)
double
getX()
Get the x value of the point.double
getY()
Get the y value of the point.int
hashCode()
Point
minus(Point c)
Subtract the specifiedPoint
from this point and return the result.Point
mult(Point c)
Multiple this pointPoint
by specified point and return the result.Point
plus(Point c)
Add the specifiedPoint
to this point and return the result.java.lang.String
toString()
-
-
-
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:
equals
in 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:
hashCode
in 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:
toString
in classjava.lang.Object
-
-