X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Fyoink;a=blobdiff_plain;f=src%2FMoof%2Fcml%2Ffixed.h;fp=src%2FMoof%2Fcml%2Ffixed.h;h=536eb3ca3227550869395b2be621c6ed6863237a;hp=0000000000000000000000000000000000000000;hb=c2321281bf12a7efaedde930422c7ddbc92080d4;hpb=87bc17e55b0c1dc73ecc66df856d3f08fd7a7724 diff --git a/src/Moof/cml/fixed.h b/src/Moof/cml/fixed.h new file mode 100644 index 0000000..536eb3c --- /dev/null +++ b/src/Moof/cml/fixed.h @@ -0,0 +1,42 @@ +/* -*- C++ -*- ------------------------------------------------------------ + +Copyright (c) 2007 Jesse Anders and Demian Nave http://cmldev.net/ + +The Configurable Math Library (CML) is distributed under the terms of the +Boost Software License, v1.0 (see cml/LICENSE for details). + + *-----------------------------------------------------------------------*/ +/** @file + * @brief + */ + +#ifndef fixed_h +#define fixed_h + +namespace cml { + + +/** This is a selector for fixed 1D and 2D arrays. + * + * The fixed<> struct is used only to select a 1D or 2D array as the base + * class of a vector or matrix. The rebind<> template is used by + * quaternion<> to select its vector length in a generic way. + * + * @sa dynamic + * @sa external + */ +template struct fixed { + + /** Rebind to a 1D type. + * + * This is used by quaternion<>. + */ + template struct rebind { typedef fixed other; }; +}; + +} // namespace cml + +#endif + +// ------------------------------------------------------------------------- +// vim:ft=cpp