public class ScreenPos
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected boolean |
swigCMemOwn |
Constructor and Description |
---|
ScreenPos()
Constructs a ScreenPos object.
|
ScreenPos(float x,
float y)
Constructs a ScreenPos object from 2 coordinates.
|
ScreenPos(long cPtr,
boolean cMemoryOwn) |
Modifier and Type | Method and Description |
---|---|
void |
delete() |
boolean |
equals(java.lang.Object obj)
Checks if this object is equal to the specified object.
|
protected void |
finalize() |
static long |
getCPtr(ScreenPos obj) |
float |
getX()
Returns the x coordinate of this position.
|
float |
getY()
Returns the y coordinate of this position.
|
int |
hashCode()
Returns the hash value of this object.
|
java.lang.String |
toString()
Creates a string representation of this screen position, useful for logging.
|
public ScreenPos(long cPtr, boolean cMemoryOwn)
public ScreenPos()
public ScreenPos(float x, float y)
x
- The x coordinate.y
- The y coordinate.public static long getCPtr(ScreenPos obj)
protected void finalize()
finalize
in class java.lang.Object
public void delete()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public float getX()
public float getY()
public java.lang.String toString()
toString
in class java.lang.Object