Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/orxonox/branches/old.chris/src/coordinates.h @ 3761

Last change on this file since 3761 was 2112, checked in by chris, 20 years ago

orxonox/branches/chris: Implemented quaternion class… but something is still f up… the camera keeps pointing into the wrong direction… matrix rotation calculation seems not to be my strenght…

File size: 905 bytes
Line 
1/*!
2    \file coordinates.h
3    \brief Basic coordinate system definitions
4*/ 
5
6#ifndef COORDINATES_H
7#define COORDINATES_H
8
9#include "vector.h"
10
11//! Coordinates relative to track
12/**
13  This identifies the position of an object on the track system
14*/
15typedef struct
16{
17  unsigned long part;   //!< ID of the track part the object is on
18  float dist;           //!< The distance that has already been traveled on the track
19  Vector pos;           //!< The position relative to the offset marked by the distance already covered
20  Quaternion rot;         //!< The direction the object is heading (relative to track direction)
21} Location;
22
23//! Absolute coordinates
24/**
25  This is used to store the position of a object in the rendered coordinate system
26*/
27typedef struct
28{
29  Vector r;              //!< Absolute x/y/z coordinates
30  Quaternion w;            //!< Absolute orientation
31} Placement;
32
33#endif
Note: See TracBrowser for help on using the repository browser.