javax.media.nativewindow.util
public class Point extends Object implements Cloneable, PointImmutable
Modifier and Type | Method and Description |
---|---|
Object |
clone() |
Object |
cloneMutable() |
boolean |
equals(Object obj)
Checks whether two points objects are equal.
|
int |
getX() |
int |
getY() |
int |
hashCode() |
Point |
scale(int sx,
int sy) |
void |
setX(int x) |
void |
setY(int y) |
String |
toString() |
Point |
translate(int dx,
int dy) |
Point |
translate(Point pd) |
public Object cloneMutable()
cloneMutable
in interface com.jogamp.common.type.WriteCloneable
public boolean equals(Object obj)
PointImmutable
PointReadOnly
are equal if the two components
y
and x
are equal.equals
in interface PointImmutable
equals
in class Object
true
if the two points are equal;
otherwise false
.public final int getX()
getX
in interface PointImmutable
public final int getY()
getY
in interface PointImmutable
public int hashCode()
hashCode
in interface PointImmutable
hashCode
in class Object
public void setX(int x)
public void setY(int y)
public Point translate(int dx, int dy)
public Point scale(int sx, int sy)
Copyright 2010 JogAmp Community.