Hot Door CORE  0.7.0
Adobe® Illustrator® Plug-in Library
hdicoreConstants.h
Go to the documentation of this file.
1 
7 #ifndef __HDI_CORE_CONSTANTS__
8 #define __HDI_CORE_CONSTANTS__
9 
10 namespace hdi
11 {
12  namespace core
13  {
17  const long setupFailedErrorCode = 'SUFE';
18 
24  const double maxFloatPrecision = 0.000001;
25 
31  const double maxDoublePrecision = 0.00000000000001;
32 
36  const double thousPerInch = 1000.0;
37 
41  const double millimetersPerInch = 25.4;
42 
46  const double inchesPerFoot = 12.0;
47 
51  const double feetPerYard = 3.0;
52 
56  const double feetPerMile = 5280.0;
57 
61  const double millimetersPerCentimeter = 10.0;
62 
66  const double centimetersPerMeter = 100.0;
67 
71  const double metersPerKilometer = 1000.0;
72 
76  const double pointsPerPica = 12.0;
77 
81  const double shakusPerMeter = 3.3;
82 
86  const double sqPointsPerAcre = 32517365759.9999999999999999999999999;
87 
91  const double sqPointsPerHectare = 80352160704.3214086428172856345712691;
92 
96  const double pointsPerThou = 0.072;
97 
101  const double pointsPerInch = 72.0;
102 
106  const double pointsPerFoot = 864.0;
107 
111  const double pointsPerYard = 2592.0;
112 
116  const double pointsPerMile = 4561920.0;
117 
121  const double pointsPerMillimeter = 2.83464566929133858267716535433070866;
122 
126  const double pointsPerCentimeter = 28.3464566929133858267716535433070866;
127 
131  const double pointsPerMeter = 2834.64566929133858267716535433070866;
132 
136  const double pointsPerKilometer = 2834645.66929133858267716535433070866;
137 
141  const double pointsPerShaku = 858.983536148890479599141016463851109;
142 
148  const double bezierKappa = 0.55228474983079339840225163227959743; // 4.0 * ((M_SQRT2 - 1.0) / 3.0);
149 
153  const double bezierMagicNumber = 3.62132034355964257320253308631454711; // 2.0 / bezierKappa
154 
158  const double pointsForInch64th = 1.125;
159 
163  const double pointsForInch32nd = 2.25;
164 
168  const double pointsForInch16th = 4.5;
169 
173  const double pointsForInch8th = 9.0;
174 
178  const double pointsForInch4th = 18.0;
179 
183  const double pointsForHalfInch = 36.0;
184 
188  const double pointsFor1mm = 2.83464566929133858267716535433070866;
189 
193  const double pointsFor1cm = 28.3464566929133858267716535433070866;
194 
198  const double pointsFor1meter = 2834.64566929133858267716535433070866;
199 
203  const double pointsFor1km = 2834645.66929133858267716535433070866;
204  }
205 }
206 
207 #endif
Definition: hdicoreaiArray.h:12