Changeset 2012 in orxonox.OLD for orxonox/branches/chris/src/coordinates.h
- Timestamp:
- Jun 22, 2004, 12:45:28 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/branches/chris/src/coordinates.h
r1982 r2012 4 4 #include "vector.h" 5 5 6 typedef struct Location // place of a thing on the track system 6 //! Coordinates relative to track 7 /** 8 This identifies the position of an object on the track system 9 */ 10 typedef struct Location 7 11 { 8 unsigned long part; // ID of the track part the object is on9 float dist; // distance already traveled on atrack10 Vector pos; // position relative tothe distance already covered11 Rotation rot; // direction the object is heading (relative to track direction)12 unsigned long part; //!< ID of the track part the object is on 13 float dist; //!< The distance that has already been traveled on the track 14 Vector pos; //!< The position relative to the offset marked by the distance already covered 15 Rotation rot; //!< The direction the object is heading (relative to track direction) 12 16 } Location; 13 17 14 typedef struct Placement // place of a thing in the rendered coordinate system 18 //! Absolute coordinates 19 /** 20 This is used to store the position of a object in the rendered coordinate system 21 */ 22 typedef struct Placement 15 23 { 16 Vector r; // x/y/z coordinated17 Rotation w; // orientation24 Vector r; //!< Absolute x/y/z coordinates 25 Rotation w; //!< Absolute orientation 18 26 } Placement; 19 27
Note: See TracChangeset
for help on using the changeset viewer.