Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/trunk/src/lib/math/rotation_OBSOLETE.h @ 8511

Last change on this file since 8511 was 6617, checked in by bensch, 19 years ago

trunk: split Rotation/Line/Quaternion/Plane(Rectangle) into seperate files

File size: 1.2 KB
RevLine 
[5420]1/*
2   orxonox - the future of 3D-vertical-scrollers
3
4   Copyright (C) 2004 orx
5
6   This program is free software; you can redistribute it and/or modify
7   it under the terms of the GNU General Public License as published by
8   the Free Software Foundation; either version 2, or (at your option)
9   any later version.
10
11### File Specific:
12   main-programmer: Christian Meyer
13   co-programmer: ...
14*/
15
[4578]16/*!
[6617]17 * @file rotation_OBSOLETE.h
18 * A basic 3D rotation framework
[5008]19 *
[6617]20 * THIS IS AN OBSOLETE FRAMEWORK, AND WILL BE DELETED SOON
21 *
22 *
[5008]23 * Contains classes to handle vectors, lines, rotations and planes
[4578]24*/
[2043]25
[6617]26#ifndef __ROTATION_H_
27#define __ROTATION_H_
[2043]28
[6617]29#include "vector.h"
[2043]30
[2190]31//! 3D rotation (OBSOLETE)
32/**
[2043]33  Class to handle 3-dimensional rotations.
34  Can create a rotation from several inputs, currently stores rotation using a 3x3 Matrix
35*/
36class Rotation {
37  public:
[4578]38
[2043]39  float m[9]; //!< 3x3 Rotation Matrix
[4578]40
[2043]41  Rotation ( const Vector& v);
42  Rotation ( const Vector& axis, float angle);
43  Rotation ( float pitch, float yaw, float roll);
44  Rotation ();
45  ~Rotation () {}
[4578]46
[2190]47  Rotation operator* (const Rotation& r);
[4578]48
[2190]49  void glmatrix (float* buffer);
[2043]50};
[2551]51
[2043]52//!< Apply a rotation to a vector
[3228]53Vector rotateVector( const Vector& v, const Rotation& r);
[2043]54
55
[6617]56#endif /* __ROTATION_H_ */
[4578]57
Note: See TracBrowser for help on using the repository browser.