source: cpp/_old/f4/f4_orientmat.h @ 180

Last change on this file since 180 was 4, checked in by Maciej Komosinski, 16 years ago

added f4, a genetic representation that describes development of an organism

File size: 1.4 KB
Line 
1/*
2 *  f4_orientmat.h - Extension of Orient with matrix multiplication.
3 *
4 *  f4genotype - f4 format genotype conversions for FramSticks
5 *
6 *  Copyright (C) 1999,2000  Adam Rotaru-Varga (adam_rotaru@yahoo.com)
7 *
8 *  This library is free software; you can redistribute it and/or
9 *  modify it under the terms of the GNU Lesser General Public
10 *  License as published by the Free Software Foundation; either
11 *  version 2.1 of the License, or (at your option) any later version.
12 *
13 *  This library is distributed in the hope that it will be useful,
14 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
15 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
16 *  Lesser General Public License for more details.
17 *
18 *  You should have received a copy of the GNU Lesser General Public
19 *  License along with this library; if not, write to the Free Software
20 *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
21 *
22 */
23
24#ifndef _F4_ORIENTMAT_H_
25#define _F4_ORIENTMAT_H_
26
27#include "3d.h"
28
29typedef enum {
30   xOy, xOz, yOz
31} XYZplanes;
32
33class f4_OrientMat: public Orient
34{
35 public:
36  f4_OrientMat() : Orient() {};
37  f4_OrientMat(const Orient & o) : Orient(o) {};
38  /// matrix multiplication
39  f4_OrientMat operator*(const Orient & M2);
40  /// rotation matrix in a given cartesian plane
41  f4_OrientMat(XYZplanes plane, float angle);
42};
43
44#endif
Note: See TracBrowser for help on using the repository browser.