Starshatter_Open
Open source Starshatter engine
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Fix.cpp
Go to the documentation of this file.
1 /* Project nGenEx
2  Destroyer Studios LLC
3  Copyright © 1997-2004. All Rights Reserved.
4 
5  SUBSYSTEM: nGenEx.lib
6  FILE: Fix.cpp
7  AUTHOR: John DiCamillo
8 
9 
10  OVERVIEW
11  ========
12  Fixed point number class with 16 bits of fractional precision
13 */
14 
15 #include "MemDebug.h"
16 #include "Fix.h"
17 
18 // +--------------------------------------------------------------------+
19 
20 const fix fix::one = fix(1);
21 const fix fix::two = fix(2);
22 const fix fix::three = fix(3);
23 const fix fix::five = fix(5);
24 const fix fix::ten = fix(10);