Class mil.navy.nps.dis.AngularVelocity
java.lang.Object
|
+--mil.navy.nps.dis.PduElement
|
+--mil.navy.nps.dis.AngularVelocity
- public class AngularVelocity
- 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/AngularVelocity.java
- Hierarchy Diagram:
- Summary:
- The angular velocity of simulated entities shall be represented by the Angular Velocity Vector Record.
This record shall specify the rate at which an entity's orientation is changing.
This rate shall be measured in radians per second measured about
each of the entity's own coordinate axes.
- Explanation
- Describes the angular velocity of the object about the
x, y, and z axis with 32 floating points terms in radian's per second.
- History:
- 07Mar97 /Don McGregor /New
- 16Apr97 /Don McGregor /PrintStream passed to printValues
- 12Aug97 / Don Brutzman /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:
Angular Velocity Vector Record
- DIS specification : IEEE 1278.1, Section 1.3.2, 5.3.2
- See Also:
- PduElement, mil.navy.nps.util.SerializationInterface
Field Summary
|
int
|
sizeOf
Constant value--size of an Angular Velocity Record when written out; here :sizeOf = 12 bytes . |
float
|
x
Rate about x-axis.
|
float
|
y
Rate about y-axis.
|
float
|
z
Rate about z-axis.
|
Constructor Summary
|
AngularVelocity()
Constructs an new Angular Velocity Vector, velocity's value is 0. |
AngularVelocity(float pX,
float pY,
float pZ)
Constructs a new Angular Velocity Vector with coordinate values passed in parameters. |
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notifyAll, notify, toString, wait, wait, wait |
x
protected float x
- Rate about x-axis.
- Value:
- In radian by second.
y
protected float y
- Rate about y-axis.
- Value:
- In radian by second.
z
protected float z
- Rate about z-axis.
- Value:
- In radian by second.
sizeOf
public final int sizeOf
- Constant value--size of an Angular Velocity Record when written out; here :
sizeOf = 12 bytes
.
AngularVelocity
public AngularVelocity()
- Constructs an new Angular Velocity Vector, velocity's value is 0.
AngularVelocity
public AngularVelocity(float pX,
float pY,
float pZ)
- Constructs a new Angular Velocity Vector with coordinate values passed in parameters.
- Parameters:
pX
- the first coordinate in the cartesian coordinate system
pY
- the second coordinate in the cartesian coordinate system
pZ
- the third coordinate in the cartesian coordinate system
clone
public java.lang.Object clone()
- Overrides:
- clone in class PduElement
serialize
public void serialize(java.io.DataOutputStream outputStream)
- Throws:
- java.lang.RuntimeException - when IO error occurs.
- Overrides:
- serialize in class PduElement
deSerialize
public void deSerialize(java.io.DataInputStream pInputStream)
- Throws:
- java.lang.RuntimeException - when IO error occurs.
- 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 pX,
float pY,
float pZ)
getX
public float getX()
setX
public void setX(float pX)
getY
public float getY()
setY
public void setY(float pY)
getZ
public float getZ()
setZ
public void setZ(float pZ)