public class Point3D
extends java.lang.Object
Constructor and Description |
---|
Point3D()
Constructor for the Point3D object
|
Point3D(double a,
double b,
double c)
Constructor for the Point3D object
|
Point3D(Point3D P)
Constructor for the Point3D object
|
Point3D(Point3f P) |
Modifier and Type | Method and Description |
---|---|
double |
distance(Point3D other)
Description of the Method
|
double |
distance(Point3D other,
double resXY,
double resZ)
Description of the Method
|
double |
distanceSquare(Point3D other)
Description of the Method
|
double |
distanceSquare(Point3D other,
double resXY,
double resZ)
Description of the Method
|
double |
distBlock(Point3D other) |
boolean |
equals(java.lang.Object o) |
double[] |
getArray() |
Point3f |
getPoint3f() |
Point3D |
getPosition()
Gets the position attribute of the Point3D object
|
int |
getRoundX() |
int |
getRoundY() |
int |
getRoundZ() |
Vector3D |
getVector3D()
Gets the vector3D attribute of the Point3D object
|
double |
getX()
Get the value of x
|
double |
getY()
Get the value of y
|
double |
getZ()
Get the value of z
|
int |
hashCode() |
boolean |
isInsideBoundingBox(int[] boundingBox) |
Point3D |
projectionPlane(double a,
double b,
double c,
double d) |
boolean |
samePosition(Point3D other) |
boolean |
samePosition(Point3D other,
double error) |
boolean |
sameVoxel(Point3D other) |
boolean |
sameVoxel(Point3DInt other) |
void |
scale(double sx,
double sy,
double sz) |
void |
setCoordRandom()
set coordinates with random numbers between -1 and 1
|
void |
setX(double newVar)
Set the value of x
|
void |
setY(double newVar)
Set the value of y
|
void |
setZ(double newVar)
Set the value of z
|
java.lang.String |
toString()
Description of the Method
|
void |
translate(double dx,
double dy,
double dz) |
void |
translate(Vector3D v)
Description of the Method
|
void |
xmlWrite(java.io.Writer wr) |
public Point3D()
public Point3D(double a, double b, double c)
a
- Description of the Parameterb
- Description of the Parameterc
- Description of the Parameterpublic Point3D(Point3D P)
P
- Description of the Parameterpublic Point3D(Point3f P)
public void setX(double newVar)
newVar
- the new value of xpublic double getX()
public int getRoundX()
public int getRoundY()
public int getRoundZ()
public void setY(double newVar)
newVar
- the new value of ypublic double getY()
public void setZ(double newVar)
newVar
- the new value of zpublic double getZ()
public Vector3D getVector3D()
public Point3D getPosition()
public Point3f getPoint3f()
public void translate(Vector3D v)
v
- Description of the Parameterpublic void translate(double dx, double dy, double dz)
public void scale(double sx, double sy, double sz)
public double distance(Point3D other)
other
- Description of the Parameterpublic double distance(Point3D other, double resXY, double resZ)
other
- Description of the ParameterresXY
- resZ
- public double distanceSquare(Point3D other)
other
- Description of the Parameterpublic double distanceSquare(Point3D other, double resXY, double resZ)
other
- Description of the ParameterresXY
- resZ
- public double distBlock(Point3D other)
other
- public java.lang.String toString()
toString
in class java.lang.Object
public void xmlWrite(java.io.Writer wr)
wr
- public void setCoordRandom()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public double[] getArray()
public boolean isInsideBoundingBox(int[] boundingBox)
public boolean sameVoxel(Point3D other)
public boolean sameVoxel(Point3DInt other)
public boolean samePosition(Point3D other, double error)
public boolean samePosition(Point3D other)
public Point3D projectionPlane(double a, double b, double c, double d)