public class MapPos
extends java.lang.Object
限定符和类型 | 字段和说明 |
---|---|
protected boolean |
swigCMemOwn |
构造器和说明 |
---|
MapPos()
Constructs a MapPos object.
|
MapPos(double x,
double y)
Constructs a MapPos object from 2 coordinates.
|
MapPos(double x,
double y,
double z)
Constructs a MapPos object from 3 coordinates.
|
MapPos(long cPtr,
boolean cMemoryOwn) |
限定符和类型 | 方法和说明 |
---|---|
MapPos |
add(MapVec v)
Creates a new map position by adding a map vector to this map position.
|
void |
delete() |
boolean |
equals(java.lang.Object obj)
Checks if this object is equal to the specified object.
|
protected void |
finalize() |
static long |
getCPtr(MapPos obj) |
double |
getX()
Returns the x coordinate of this map position.
|
double |
getY()
Returns the y coordinate of this map position.
|
double |
getZ()
Returns the z coordinate of this map position.
|
int |
hashCode()
Returns the hash value of this object.
|
MapVec |
subPos(MapPos p)
Creates a new map vector by subtracting a map position from this map position.
|
MapPos |
subVec(MapVec v)
Creates a new map position by subtracting a map vector from this map position.
|
java.lang.String |
toString()
Creates a string representation of this map position, useful for logging.
|
public MapPos(long cPtr, boolean cMemoryOwn)
public MapPos()
public MapPos(double x, double y)
x
- The x coordinate.y
- The y coordinate.public MapPos(double x, double y, double z)
x
- The x coordinate.y
- The y coordinate.z
- The z coordinate.public static long getCPtr(MapPos 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 double getX()
public double getY()
public double getZ()
public MapPos add(MapVec v)
v
- The map vector to be added.public MapPos subVec(MapVec v)
v
- The map vector to be subtracted.public MapVec subPos(MapPos p)
p
- The map position to be subtracted.public java.lang.String toString()
toString
在类中 java.lang.Object