public class ScreenPos
extends java.lang.Object
限定符和类型 | 字段和说明 |
---|---|
protected boolean |
swigCMemOwn |
构造器和说明 |
---|
ScreenPos()
Constructs a ScreenPos object.
|
ScreenPos(float x,
float y)
Constructs a ScreenPos object from 2 coordinates.
|
ScreenPos(long cPtr,
boolean cMemoryOwn) |
限定符和类型 | 方法和说明 |
---|---|
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
在类中 java.lang.Object
public void delete()
public boolean equals(java.lang.Object obj)
equals
在类中 java.lang.Object
obj
- The reference object.public int hashCode()
hashCode
在类中 java.lang.Object
public float getX()
public float getY()
public java.lang.String toString()
toString
在类中 java.lang.Object