public final class Point3D extends Object
dxfviewer.math.Vector3D;
Constructor and Description |
---|
Point3D() |
Point3D(double xx,
double yy,
double zz) |
Point3D(Point3D p)
Copy constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
add(Vector3D v)
Add a vector.
|
Vector3D |
minus(Point3D p)
Get difference with point.
|
Point3D |
minus(Vector3D v)
Get difference with vector.
|
Point3D |
plus(Vector3D v)
Get sum with vector.
|
void |
scale(double f)
Scale.
|
void |
sub(Vector3D v)
Substract a vector.
|
String |
toString()
Output.
|
public Point3D()
public Point3D(Point3D p)
p
- point to copypublic Point3D(double xx, double yy, double zz)
xx
- x coordyy
- y coordzz
- z coordpublic void scale(double f)
f
- scaling factorpublic void add(Vector3D v)
v
- vector to addpublic Point3D plus(Vector3D v)
v
- vector to addpublic void sub(Vector3D v)
v
- vector to substractpublic Point3D minus(Vector3D v)
v
- vector to substractpublic Vector3D minus(Point3D p)
p
- point to substract