|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.quinncurtis.chart3djava.GroupPoint3D
public class GroupPoint3D
This class encapsulates a single group point data item, which contains one x-value, one z-value, and multiple y-values.
| Field Summary | |
|---|---|
double |
x
The x-coordinate of this GroupPoint3D. |
DoubleArray |
ygroup
The y-coordinate of this GroupPoint3D. |
double |
z
The z-coordinate of this GroupPoint3D. |
| Constructor Summary | |
|---|---|
GroupPoint3D()
Default constructor. |
|
GroupPoint3D(double px,
double[] py,
double pz)
Constructs and initializes a GroupPoint3D with the specified coordinates. |
|
GroupPoint3D(double px,
DoubleArray py,
double pz)
Constructs and initializes a GroupPoint3D with the specified coordinates. |
|
GroupPoint3D(java.util.GregorianCalendar px,
double[] py,
double pz)
Constructs and initializes a Point3D with the specified coordinates. |
|
GroupPoint3D(GroupPoint3D p)
Constructs and initializes a GroupPoint3D with the specified coordinates. |
|
| Method Summary | |
|---|---|
java.lang.Object |
clone()
Creates a new object of the same class and with the same contents as this object. |
static double |
distance(double X1,
double Y1,
double Z1,
double X2,
double Y2,
double Z2)
Returns the distance between two points. |
double |
distance(double PX,
double PY,
double PZ,
int groupindex)
Returns the distance from this GroupPoint3D to a specified point. |
double |
distance(GroupPoint3D pt,
int groupindex)
Returns the distance from this GroupPoint3D to a specified GroupPoint3D. |
static double |
distanceSq(double X1,
double Y1,
double Z1,
double X2,
double Y2,
double Z2)
Returns the square of the distance between two points. |
double |
distanceSq(double PX,
double PY,
double PZ,
int groupindex)
Returns the square of the distance between the specified point and the current point. |
double |
distanceSq(GroupPoint3D pt,
int groupindex)
Returns the square of the distance between the specified point and the current point. |
java.util.GregorianCalendar |
getCalendarX()
Returns the X coordinate of this Point3D. |
double |
getX()
Returns the X coordinate of this GroupPoint3D. |
double[] |
getY()
Returns the Y coordinates of this GroupPoint3D. |
double |
getZ()
Returns the Z coordinate of this GroupPoint3D. |
void |
setLocation(double px,
double[] py,
double pz)
Sets the location of this GroupPoint3D to the specified coordinates. |
void |
setLocation(java.util.GregorianCalendar px,
double[] py,
double pz)
Initializes a Point3D with the specified coordinates. |
void |
setLocation(GroupPoint3D p)
Sets the location of this GroupPoint3D to the specified coordinates. |
void |
setX(double value)
Set the x-value of the point. |
void |
setY(int i,
double value)
Set the y-value at group index i of the point. |
void |
setZ(double value)
Set the z-value of the point. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public double x
GroupPoint3D.
public double z
GroupPoint3D.
public DoubleArray ygroup
GroupPoint3D.
| Constructor Detail |
|---|
public GroupPoint3D()
public GroupPoint3D(double px,
double[] py,
double pz)
GroupPoint3D with the specified coordinates.
px - the x-coordinatepy - an array of the y-coordinatespz - the z-coordinate
public GroupPoint3D(double px,
DoubleArray py,
double pz)
GroupPoint3D with the specified coordinates.
px - the x-coordinatepy - an array of the y-coordinatespz - the z-coordinate
public GroupPoint3D(java.util.GregorianCalendar px,
double[] py,
double pz)
Point3D with the specified coordinates.
px - the x-coordinatepy - the y-coordinatespz - the z-coordinatepublic GroupPoint3D(GroupPoint3D p)
GroupPoint3D with the specified coordinates.
p - the xy coordinates| Method Detail |
|---|
public double getX()
GroupPoint3D.
GroupPoint3D.public double getZ()
GroupPoint3D.
GroupPoint3D.public java.util.GregorianCalendar getCalendarX()
Point3D.
Point3D.public double[] getY()
GroupPoint3D.
GroupPoint3D.
public void setLocation(double px,
double[] py,
double pz)
GroupPoint3D to the specified coordinates.
px - the x-coordinatepy - the y-coordinatespz - the z-coordinate
public void setLocation(java.util.GregorianCalendar px,
double[] py,
double pz)
Point3D with the specified coordinates.
px - the x-coordinatepy - the y-coordinatespz - the z-coordinatepublic void setLocation(GroupPoint3D p)
GroupPoint3D to the specified coordinates.
p - the coordinate values
public static double distanceSq(double X1,
double Y1,
double Z1,
double X2,
double Y2,
double Z2)
X1 - the x-coordinate of the first pointY1 - the y-coordinate of the first pointZ1 - the z-coordinate of the first pointX2 - the x-coordinate of the second pointY2 - the y-coordinate of the second pointZ2 - the z-coordinate of the second point
public static double distance(double X1,
double Y1,
double Z1,
double X2,
double Y2,
double Z2)
X1 - the x-coordinate of the first pointY1 - the y-coordinate of the first pointZ1 - the z-coordinate of the first pointX2 - the x-coordinate of the second pointY2 - the y-coordinate of the second pointZ2 - the z-coordinate of the second point
public double distanceSq(double PX,
double PY,
double PZ,
int groupindex)
PX - the x-value of the specified pointPY - the y-value of the specified pointPZ - the z-value of the specified pointgroupindex - the group index to use for the y-value
public double distanceSq(GroupPoint3D pt,
int groupindex)
pt - the coordinates of the specified pointgroupindex - the group index to use for the y-value
public double distance(double PX,
double PY,
double PZ,
int groupindex)
GroupPoint3D to a specified point.
PX - the x-value of the specified pointPY - the y-value of the specified pointPZ - the z-value of the specified pointgroupindex - the group index to use for the y-value
GroupPoint3D and a specified point.
public double distance(GroupPoint3D pt,
int groupindex)
GroupPoint3D to a specified GroupPoint3D.
pt - the coordinates of the specified pointgroupindex - the group index to use for the y-value
GroupPoint3D and the specified GroupPoint3D.public java.lang.Object clone()
clone in class java.lang.Objectpublic void setX(double value)
value - x-value of the point.
public void setY(int i,
double value)
i - Group indexvalue - Group-y Value for the element.public void setZ(double value)
value - z-Value for the point.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||