Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS | NEXT CLASS FRAMES  | NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD DETAIL:  FIELD | CONSTR | METHOD

Class mil.navy.nps.dis.EulerAngle

java.lang.Object
  |
  +--mil.navy.nps.dis.PduElement
        |
        +--mil.navy.nps.dis.EulerAngle

public class EulerAngle
extends PduElement
Version:
1.0
Author:
Don McGregor (http://www.stl.nps.navy.mil/~mcgredo)
Location:
http://www.stl.nps.navy.mil/dis-java-vrml/mil/navy/nps/dis/EulerAngle.java
Hierarchy Diagram:
Summary:
Orientation of a simulated entity shall be specified by the Euler Angles Record. This record shall specify three angles which are specifed with respect to the entities coordinate system. The three angles shall be represented in radians
Explanation:
Describes the orientation of an object, in psi, theta, phi 32 bit floating point terms. There are a number of classes that use the same basic layout of 3 32-bit numbers (velocity, angular velocity, EntityPosition, etc.) but they're split out into separate classes in the interests of type safety fascism.

"Don't ask, don't tell" does NOT apply here. We can ask any entity about its orientation.

History:
06Mar97 /Don McGregor /New
16Apr97 /Don McGregor /PrintStream passed to printValues
12Aug97 /Don McGregor /elaborated printValues
8Dec97 /Ronan Fauglas /changes for documentation templates + complements in documentation
11Dec97 /Ronan Fauglas /changes access methods names from "variable()" to "getVariable()"
References:
DIS Data Dictionary : Euler Angles Record
DIS specification : IEEE 1278.1, Section 5.3.17,1.3.2
See Also:
PduElement, mil.navy.nps.util.SerializationInterface

Field Summary
float phi
          The second angle of rotation (around the "X" axis) in radians.
float psi
          The first angle of rotation (around the "Z" axis) in radians.
int sizeOf
          Constant value--size of an EulerAngle record when written out; here :sizeOf = 12 bytes.
float theta
          The second angle of rotation (around the "Y" axis) in radians.
 
Constructor Summary
EulerAngle()
          Constructs an new Entity Identifier, with initial values initiated to 0.
EulerAngle(float pPsi, float pTheta, float pPhi)
          Constructs an new EulerAngle Record, with variables values passed by parameters.
 
Method Summary
java.lang.Object clone()
           
void deSerialize(java.io.DataInputStream pInputStream)
           
float getPhi()
           
float getPsi()
           
float getTheta()
           
int length()
           
void printValues(int indentLevel, java.io.PrintStream printStream)
           
void serialize(java.io.DataOutputStream outputStream)
           
void setPhi(float pPhi)
           
void setPsi(float pPsi)
           
void setTheta(float pTheta)
           
void setValues(float pPsi, float pTheta, float pPhi)
           
 
Methods inherited from class mil.navy.nps.dis.PduElement
clone, deSerialize, length, printValues, serialize
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notifyAll, notify, toString, wait, wait, wait
 

Field Detail

psi

protected float psi
The first angle of rotation (around the "Z" axis) in radians.

theta

protected float theta
The second angle of rotation (around the "Y" axis) in radians.

phi

protected float phi
The second angle of rotation (around the "X" axis) in radians.

sizeOf

public final int sizeOf
Constant value--size of an EulerAngle record when written out; here :sizeOf = 12 bytes.
Constructor Detail

EulerAngle

public EulerAngle()
Constructs an new Entity Identifier, with initial values initiated to 0.

EulerAngle

public EulerAngle(float pPsi,
                  float pTheta,
                  float pPhi)
Constructs an new EulerAngle Record, with variables values passed by parameters.
Parameters:
pPsi - the rotation about z by angle
pTheta - the rotation about y by angle
pPhi - the rotation about x by angle
Method Detail

clone

public java.lang.Object clone()
Overrides:
clone in class PduElement

serialize

public void serialize(java.io.DataOutputStream outputStream)
Overrides:
serialize in class PduElement

deSerialize

public void deSerialize(java.io.DataInputStream pInputStream)
Overrides:
deSerialize in class PduElement

length

public int length()
Overrides:
length in class PduElement

printValues

public void printValues(int indentLevel,
                        java.io.PrintStream printStream)
Overrides:
printValues in class PduElement

setValues

public void setValues(float pPsi,
                      float pTheta,
                      float pPhi)

getPsi

public float getPsi()

setPsi

public void setPsi(float pPsi)

getTheta

public float getTheta()

setTheta

public void setTheta(float pTheta)

getPhi

public float getPhi()

setPhi

public void setPhi(float pPhi)

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS | NEXT CLASS FRAMES  | NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD DETAIL:  FIELD | CONSTR | METHOD