|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcdx.Motion
public class Motion
Objects of the Motion class provide all a-priori known information about what the Aircraft was doing between two frames. Also provides methods to do useful things with this object (so it's not just dead data).
Constructor Summary | |
---|---|
Motion()
Constructor |
|
Motion(Aircraft _aircraft,
Vector3d _pos)
Initialise with an aircraft and one position. |
|
Motion(Aircraft _aircraft,
Vector3d _pos_one,
Vector3d _pos_two)
Initialise with an aircraft and two positions. |
Method Summary | |
---|---|
void |
copyfrom(Aircraft _aircraft,
Vector3d _pos_one,
Vector3d _pos_two)
Copy the value of another motion to this motion. |
Vector3d |
findIntersection(Motion other)
Find an intersection between this Motion and another Motion. |
Aircraft |
getAircraft()
Retrieve the aircraft. |
Vector3d |
getFirstPosition()
Retrieve the first position. |
Vector3d |
getSecondPosition()
Retrieve the second position. |
java.lang.String |
toString()
Convert a motion to a string |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Motion()
public Motion(Aircraft _aircraft, Vector3d _pos_one, Vector3d _pos_two)
_aircraft
- aircraft_pos_one
- first position_pos_two
- second positionpublic Motion(Aircraft _aircraft, Vector3d _pos)
_aircraft
- aircraft_pos
- first position that equals to the second oneMethod Detail |
---|
public Aircraft getAircraft()
public Vector3d getFirstPosition()
public Vector3d getSecondPosition()
public java.lang.String toString()
toString
in class java.lang.Object
public void copyfrom(Aircraft _aircraft, Vector3d _pos_one, Vector3d _pos_two)
_aircraft
- aircraft in the target motion_pos_one
- first position_pos_two
- second positionpublic Vector3d findIntersection(Motion other)
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |