All Packages Class Hierarchy This Package Previous Next Index
Class java.media.j3d.HiResCoord
java.lang.Object
|
+----java.media.j3d.HiResCoord
- public class HiResCoord
- extends Object
The HiResCoord represents 768 bits of floating point 3-Space.
-
HiResCoord()
-
Constructs and initializes a new HiResCoord located at (0, 0, 0).
-
HiResCoord(HiResCoord)
-
Constructs and initializes a new HiResCoord using the values
provided in the argument.
-
HiResCoord(int[], int[], int[])
-
Constructs and initializes a new HiResCoord using the values
provided in the argument.
-
add(HiResCoord, HiResCoord)
- Adds two HiResCoords placing the results into this HiResCoord.
-
difference(HiResCoord, Vector3d)
- Subtracts the specified HiResCoord from this HiResCoord
placing the difference vector into the specified
double-precision vector.
-
distance(HiResCoord)
- The floating point distance between the specified
HiResCoord and this HiResCoord.
-
equals(HiResCoord)
- Compares the specified HiResCoord to this HiResCoord.
-
getHiResCoord(HiResCoord)
- Retrieves this HiResCoord's location and places it into the hires
argument.
-
getHiResCoord(int[], int[], int[])
- Retrieves this HiResCoord's location and saves the coordinates
in the parameters provided.
-
getHiResCoordX(int[])
- Retrieves this HiResCoord's X value and stores it in the specified
argument.
-
getHiResCoordY(int[])
- Retrieves this HiResCoord's Y value and stores it in the specified
argument.
-
getHiResCoordZ(int[])
- Retrieves this HiResCoord's Z value and stores it in the specified
argument.
-
negate()
- Negates this HiResCoord
-
negate(HiResCoord)
- Negates the specified HiResCoords and places the
results into this HiResCoord.
-
scale(int)
- Scales this HiResCoord by the specified value.
-
scale(int, HiResCoord)
- Scales the specified HiResCoords by the specified value and
places the results into this HiResCoord.
-
setHiResCoord(HiResCoord)
- Sets this HiResCoord to the location specified by the
hires provided.
-
setHiResCoord(int[], int[], int[])
- Sets this HiResCoord to the location specified by the
parameters provided.
-
setHiResCoordX(int[])
- Sets this HiResCoord's X value to that specified by the argument.
-
setHiResCoordY(int[])
- Sets this HiResCoord's Y value to that specified by the argument.
-
setHiResCoordZ(int[])
- Sets this HiResCoord's Z value to that specified by the argument.
-
sub(HiResCoord, HiResCoord)
- Subtracts two HiResCoords placing the results into this HiResCoord.
HiResCoord
public HiResCoord(int X[],
int Y[],
int Z[])
- Constructs and initializes a new HiResCoord using the values
provided in the argument.
The HiResCoord represents 768 bits of floating point 3-Space.
- Parameters:
- x - an eight element array specifying the x position
- y - an eight element array specifying the y position
- z - an eight element array specifying the z position
- Returns:
- a HiResCoord located at (x, y, z)
HiResCoord
public HiResCoord(HiResCoord hc)
- Constructs and initializes a new HiResCoord using the values
provided in the argument.
The HiResCoord represents 768 bits of floating point 3-Space.
- Parameters:
- hc - the HiResCoord to copy
- Returns:
- a new HiResCoord.
HiResCoord
public HiResCoord()
- Constructs and initializes a new HiResCoord located at (0, 0, 0).
The HiResCoord represents 768 bits of floating point 3-Space.
- Returns:
- a HiResCoord located at (0, 0, 0)
setHiResCoord
public void setHiResCoord(int X[],
int Y[],
int Z[])
- Sets this HiResCoord to the location specified by the
parameters provided.
- Parameters:
- x - an eight element array specifying the x position
- y - an eight element array specifying the y position
- z - an eight element array specifying the z position
setHiResCoord
public void setHiResCoord(HiResCoord hires)
- Sets this HiResCoord to the location specified by the
hires provided.
- Parameters:
- hires - the hires coordinate to copy
setHiResCoordX
public void setHiResCoordX(int X[])
- Sets this HiResCoord's X value to that specified by the argument.
- Parameters:
- X - an eight element array specifying the x position
setHiResCoordY
public void setHiResCoordY(int Y[])
- Sets this HiResCoord's Y value to that specified by the argument.
- Parameters:
- Y - an eight element array specifying the y position
setHiResCoordZ
public void setHiResCoordZ(int Z[])
- Sets this HiResCoord's Z value to that specified by the argument.
- Parameters:
- Z - an eight element array specifying the z position
getHiResCoord
public void getHiResCoord(int X[],
int Y[],
int Z[])
- Retrieves this HiResCoord's location and saves the coordinates
in the parameters provided.
- Parameters:
- x - an eight element array that will receive the x position
- y - an eight element array that will receive the y position
- z - an eight element array that will receive the z position
getHiResCoord
public void getHiResCoord(HiResCoord hc)
- Retrieves this HiResCoord's location and places it into the hires
argument.
- Parameters:
- hc - the hires coordinate that will receive this node's location
getHiResCoordX
public void getHiResCoordX(int X[])
- Retrieves this HiResCoord's X value and stores it in the specified
argument.
- Parameters:
- X - an eight element array the will receive the x position
getHiResCoordY
public void getHiResCoordY(int Y[])
- Retrieves this HiResCoord's Y value and stores it in the specified
argument.
- Parameters:
- Y - an eight element array the will receive the y position
getHiResCoordZ
public void getHiResCoordZ(int Z[])
- Retrieves this HiResCoord's Z value and stores it in the specified
argument.
- Parameters:
- Z - an eight element array the will receive the z position
equals
public boolean equals(HiResCoord h1)
- Compares the specified HiResCoord to this HiResCoord.
- Parameters:
- h1 - the second HiResCoord
- Returns:
- true if equal, false if not equal
add
public void add(HiResCoord h1,
HiResCoord h2)
- Adds two HiResCoords placing the results into this HiResCoord.
- Parameters:
- h1 - the first HiResCoord
- h2 - the second HiResCoord
sub
public void sub(HiResCoord h1,
HiResCoord h2)
- Subtracts two HiResCoords placing the results into this HiResCoord.
- Parameters:
- h1 - the first HiResCoord
- h2 - the second HiResCoord
negate
public void negate(HiResCoord h1)
- Negates the specified HiResCoords and places the
results into this HiResCoord.
- Parameters:
- h1 - the source HiResCoord
negate
public void negate()
- Negates this HiResCoord
scale
public void scale(int scale,
HiResCoord h1)
- Scales the specified HiResCoords by the specified value and
places the results into this HiResCoord.
- Parameters:
- scale - the amount to scale the specified HiResCoord
- h1 - the source HiResCoord
scale
public void scale(int scale)
- Scales this HiResCoord by the specified value.
- Parameters:
- scale - the amount to scale the specified HiResCoord
difference
public void difference(HiResCoord h1,
Vector3d v)
- Subtracts the specified HiResCoord from this HiResCoord
placing the difference vector into the specified
double-precision vector.
- Parameters:
- h1 - the HiResCoord to be subtracted from this
- v - the vector that will receive the result
distance
public double distance(HiResCoord h1)
- The floating point distance between the specified
HiResCoord and this HiResCoord.
- Parameters:
- h1 - the second HiResCoord
- distance - the floating point difference between the two coords
All Packages Class Hierarchy This Package Previous Next Index