public class SetPositionEvent extends VisualEvent
| Constructor and Description |
|---|
SetPositionEvent(java.lang.Object source,
java.lang.String affectedSpatialObjectName,
double x,
double y,
double z,
TimeInstant occurredTime)
Constructs a new SetPositionEvent.
|
| Modifier and Type | Method and Description |
|---|---|
double |
getX()
Gets the new x value.
|
double |
getY()
Gets the new y value.
|
double |
getZ()
Gets the new z value.
|
getOccurredTime, getTargetNamepublic SetPositionEvent(java.lang.Object source,
java.lang.String affectedSpatialObjectName,
double x,
double y,
double z,
TimeInstant occurredTime)
source - The object on which the event initially occurred.affectedSpatialObjectName - The name of the object who's
position should be set.x - The new x value.y - The new y value.z - The new z value.occuredTime - The TimeInstant when the event occurred.