public class Cad3DPoint extends Cad2DPoint
The Cad point.
| Constructor and Description |
|---|
Cad3DPoint()
Initializes a new instance of the
Cad3DPoint class. |
Cad3DPoint(double x,
double y)
Initializes a new instance of the
Cad3DPoint class. |
Cad3DPoint(double x,
double y,
double z)
Initializes a new instance of the
Cad3DPoint class. |
| Modifier and Type | Method and Description |
|---|---|
double |
getZ()
Gets or sets the z.
|
static Cad3DPoint |
op_Addition(Cad3DPoint pt1,
Cad3DPoint pt2)
Sum of two points
|
static Cad3DPoint |
op_Multiply(Cad3DPoint pt,
double sc)
Multiplication of a point and a scalar
|
static Cad3DPoint |
op_Subtraction(Cad3DPoint pt1,
Cad3DPoint pt2)
Diff of two points
|
void |
setZ(double value)
Gets or sets the z.
|
distance, getApsPoint, getX, getY, setX, setYpublic Cad3DPoint()
Initializes a new instance of the Cad3DPoint class.
public Cad3DPoint(double x,
double y,
double z)
Initializes a new instance of the Cad3DPoint class.
x - The x ordinate.y - The y ordinate.z - The z ordinate.public Cad3DPoint(double x,
double y)
Initializes a new instance of the Cad3DPoint class.
x - The pointX.y - The point Y.public final double getZ()
Gets or sets the z.
public final void setZ(double value)
Gets or sets the z.
public static Cad3DPoint op_Addition(Cad3DPoint pt1, Cad3DPoint pt2)
Sum of two points
pt1 - The first pointpt2 - The second pointpublic static Cad3DPoint op_Subtraction(Cad3DPoint pt1, Cad3DPoint pt2)
Diff of two points
pt1 - The first pointpt2 - The second pointpublic static Cad3DPoint op_Multiply(Cad3DPoint pt, double sc)
Multiplication of a point and a scalar
pt - The pointsc - The scalar