]> Dogcows Code - chaz/yoink/blob - src/moof/cml/fixed.h
bugfix: win32 packaging script temp directories
[chaz/yoink] / src / moof / cml / fixed.h
1 /* -*- C++ -*- ------------------------------------------------------------
2
3 Copyright (c) 2007 Jesse Anders and Demian Nave http://cmldev.net/
4
5 The Configurable Math Library (CML) is distributed under the terms of the
6 Boost Software License, v1.0 (see cml/LICENSE for details).
7
8 *-----------------------------------------------------------------------*/
9 /** @file
10 * @brief
11 */
12
13 #ifndef fixed_h
14 #define fixed_h
15
16 namespace cml {
17
18
19 /** This is a selector for fixed 1D and 2D arrays.
20 *
21 * The fixed<> struct is used only to select a 1D or 2D array as the base
22 * class of a vector or matrix. The rebind<> template is used by
23 * quaternion<> to select its vector length in a generic way.
24 *
25 * @sa dynamic
26 * @sa external
27 */
28 template<int Dim1 = -1, int Dim2 = -1> struct fixed {
29
30 /** Rebind to a 1D type.
31 *
32 * This is used by quaternion<>.
33 */
34 template<int D> struct rebind { typedef fixed<D> other; };
35 };
36
37 } // namespace cml
38
39 #endif
40
41 // -------------------------------------------------------------------------
42 // vim:ft=cpp
This page took 0.029265 seconds and 4 git commands to generate.