public class Point3D
extends java.lang.Object
构造器和说明 |
---|
Point3D()
构造方法
|
Point3D(float x, float y, float z)
创建一个3D点
|
Point3D(Point3D p)
创建一个3D点
|
public Point3D(float x, float y, float z)
x
- x轴y
- y轴z
- z轴public Point3D(Point3D p)
p
- 3D点public Point3D()
public void set(float x, float y, float z)
x
- x坐标y
- y坐标z
- z坐标public void add(float x, float y, float z)
x
- x坐标y
- y坐标z
- z坐标public void add(Point3D p)
p
- 3D点public float[] getCoordinatesArray()
public java.lang.String toString()
toString
在类中 java.lang.Object
public void copy(Point3D out)
out
- 新点对象