Class mil.navy.nps.dis.EntityCoordinate
java.lang.Object
|
+----mil.navy.nps.dis.PduElement
|
+----mil.navy.nps.dis.EntityCoordinate
- public class EntityCoordinate
- 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/EntityCoordinate.java
- Hierarchy Diagram:
- Summary:
- Location with respect to a particular entity shall be specified with respect to three orthogonal axes
whose origin shall be the center of the bounding volume of the entity excluding its articulated
and attached parts.
- Explanation:
- The EntityCoordinate class describes a position in 32-bit x,y,z coordinates relative
to the entity's own coordinate system. The other major position class is "WorldCoordinate",
which describes the position in 64-bit x, y, z "world" coords.
- Note:
- This is not really a record on its own for DIS, but simply a vector.
- History:
- 16Dec96 /Don McGregor /New
- 10Mar97 /Don McGregor /Cleaned up for javadoc
- 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()"
- 17Dec97 /Ronan Fauglas /bug fixes: changed sizeOf from 24 to 12
- References:
- DIS Data Dictionary:
Entity Coordinate Vector Record
- DIS specification : IEEE 1278.1, 5.3.33.1
- See Also:
- PduElement, mil.navy.nps.util.SerializationInterface, LinearAcceleration, LinearVelocity, WorldCoordinate
Field Summary
|
int
|
sizeOf
Constant value--size of a Entity Position Record; here :sizeOf = 12 bytes .
|
float
|
x
First coordinate of the entity, along X axis
|
float
|
y
Second coordinate of the entity, along Y axis
|
float
|
z
Third coordinate of the entity, along Z axis
|
Methods inherited from class java.lang.Object
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
x
protected float x
- First coordinate of the entity, along X axis
y
protected float y
- Second coordinate of the entity, along Y axis
z
protected float z
- Third coordinate of the entity, along Z axis
sizeOf
public final int sizeOf
- Constant value--size of a Entity Position Record; here :
sizeOf = 12 bytes
.
EntityCoordinate
public EntityCoordinate()
- Constructs an new EntityCoordinate Object; the entity is at the origin.
EntityCoordinate
public EntityCoordinate(float pX,
float pY,
float pZ)
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
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)