Package org.gvsig.dwg.lib.util
Class Point3D
java.lang.Object
org.gvsig.dwg.lib.util.Point3D
3dim double point. A point is transformed different than a vector.
The class is now declared final to allow a more aggresive optimization.
- Version:
- 1.10, 01/13/99
-
Field Details
-
x
public double x -
y
public double y -
z
public double z
-
-
Constructor Details
-
Point3D
public Point3D() -
Point3D
Copy constructor.- Parameters:
p- point to copy
-
Point3D
public Point3D(double xx, double yy, double zz) - Parameters:
xx- x coordyy- y coordzz- z coord
-
-
Method Details
-
scale
public void scale(double f) Scale.- Parameters:
f- scaling factor
-
add
Add a vector.- Parameters:
v- vector to add
-
plus
Get sum with vector.- Parameters:
v- vector to add- Returns:
- this+v
-
sub
Substract a vector.- Parameters:
v- vector to substract
-
minus
Get difference with vector.- Parameters:
v- vector to substract- Returns:
- this-v
-
minus
Get difference with point.- Parameters:
p- point to substract- Returns:
- this-p
-
toString
Output.
-