|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.altair.hwm.beans.utils.HWMPoint
public class HWMPoint
Title: HWMPoint
Description: This is a utility class that represents a 3D point
Company: Altair Engineering, Inc.
Constructor Summary | |
---|---|
HWMPoint()
Constructor |
|
HWMPoint(double[] arrdCoords)
Constructor |
|
HWMPoint(double dXCoord,
double dYCoord,
double dZCoord)
Constructor |
Method Summary | |
---|---|
double[] |
GetCoordinates()
Get the coordinates of the point as an array of 3 elements |
double |
GetDistance(HWMPoint hwmPoint)
Evaluate the distance between this point and another point |
double |
GetX()
Gets the X coordinate for the point |
double |
GetY()
Gets the Y coordinate for the point |
double |
GetZ()
Gets the Z coordinate for the point |
void |
readExternal(java.io.ObjectInput objInput)
Loads the version and then calls the appropriate read function for the version |
void |
SetCoordinates(double[] arrCoords)
Set the coordinates of the point from an array of 3 elements |
void |
SetCoordinates(double dXCoord,
double dYCoord,
double dZCoord)
Sets the coordinates for the point |
java.lang.String |
toString()
Represents the point as a String in the format of (x,Y,Z) |
HWMPoint |
Translate(HWMVector hwmVector)
Translate the point by a magnitude and direction specified by a vector, and return the translated point |
void |
writeExternal(java.io.ObjectOutput objOutput)
Save the persistent properties |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public HWMPoint()
public HWMPoint(double dXCoord, double dYCoord, double dZCoord)
dXCoord
- The X coordinatedYCoord
- The Y coordinatedZCoord
- The Z coordinatepublic HWMPoint(double[] arrdCoords)
- Method Detail |
---|
public void SetCoordinates(double dXCoord, double dYCoord, double dZCoord)
dXCoord
- The X coordinatedYCoord
- The Y coordinatedZCoord
- The Z coordinatepublic void SetCoordinates(double[] arrCoords) throws java.lang.ArrayIndexOutOfBoundsException
arrCoords
- The coords of the point
java.lang.ArrayIndexOutOfBoundsException
public double GetX()
public double GetY()
public double GetZ()
public double[] GetCoordinates()
public double GetDistance(HWMPoint hwmPoint)
hwmPoint
- The second point to which the distance is to be evaluated
public HWMPoint Translate(HWMVector hwmVector)
hwmVector
- The vector by which the point will be translated
public java.lang.String toString()
toString
in class java.lang.Object
public void writeExternal(java.io.ObjectOutput objOutput) throws java.io.IOException
writeExternal
in interface java.io.Externalizable
objOutput
- The stream to which data will be written
java.io.IOException
public void readExternal(java.io.ObjectInput objInput) throws java.lang.ClassNotFoundException, java.io.IOException
readExternal
in interface java.io.Externalizable
objInput
- The stream from which data will be read
IOException,
- ClassNotFoundException
java.lang.ClassNotFoundException
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |