Point3D
内容
[
隐藏
]遗产: java.lang.Object
public final class Point3D
用小数坐标表示点。
构造函数
构造函数 | 描述 |
---|---|
Point3D(double x, double y, double z) | 初始化 Point3D 的新实例。 |
方法
方法 | 描述 |
---|---|
equals(Object arg0) | |
getClass() | |
getTrivial() | 获取坐标为零的点。 |
getX() | X 坐标值。 |
getY() | Y 坐标值。 |
getZ() | Z 坐标值。 |
hashCode() | |
notify() | |
notifyAll() | |
setX(double value) | X 坐标值。 |
setY(double value) | Y 坐标值。 |
setZ(double value) | Z 坐标值。 |
toString() | 返回对象的字符串表示形式。 |
wait() | |
wait(long arg0) | |
wait(long arg0, int arg1) |
Point3D(double x, double y, double z)
public Point3D(double x, double y, double z)
初始化 Point3D 的新实例。
参数:
范围 | 类型 | 描述 |
---|---|---|
x | double | x 坐标值。 |
y | double | y 坐标值。 |
z | double | z 坐标值。 |
equals(Object arg0)
public boolean equals(Object arg0)
参数:
范围 | 类型 | 描述 |
---|---|---|
arg0 | java.lang.Object |
退货: 布尔值
getClass()
public final native Class<?> getClass()
退货: java.lang.Class
getTrivial()
public static Point3D getTrivial()
获取坐标为零的点。
退货: Point3D - Point3D 对象
getX()
public double getX()
X 坐标值。
退货: 双倍价值
getY()
public double getY()
Y 坐标值。
退货: 双倍价值
getZ()
public double getZ()
Z 坐标值。
退货: 双倍价值
hashCode()
public native int hashCode()
退货: 整数
notify()
public final native void notify()
notifyAll()
public final native void notifyAll()
setX(double value)
public void setX(double value)
X 坐标值。
参数:
范围 | 类型 | 描述 |
---|---|---|
value | double | 双倍价值 |
setY(double value)
public void setY(double value)
Y 坐标值。
参数:
范围 | 类型 | 描述 |
---|---|---|
value | double | 双倍价值 |
setZ(double value)
public void setZ(double value)
Z 坐标值。
参数:
范围 | 类型 | 描述 |
---|---|---|
value | double | 双倍价值 |
toString()
public String toString()
返回对象的字符串表示形式。
退货: java.lang.String - 字符串值
wait()
public final void wait()
wait(long arg0)
public final native void wait(long arg0)
参数:
范围 | 类型 | 描述 |
---|---|---|
arg0 | long |
wait(long arg0, int arg1)
public final void wait(long arg0, int arg1)
参数:
范围 | 类型 | 描述 |
---|---|---|
arg0 | long | |
arg1 | int |