Hot Door CORE 0.8.2
Adobe® Illustrator® Plug-in Library
Loading...
Searching...
No Matches
hdicoreConstants.h
Go to the documentation of this file.
1
7#ifndef __HDI_CORE_CONSTANTS__
8#define __HDI_CORE_CONSTANTS__
9
10namespace 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
208// __HDI_CORE_CONSTANTS__
const double pointsPerFoot
Number of points per foot.
Definition: hdicoreConstants.h:106
const double pointsFor1meter
Number of points in a meter.
Definition: hdicoreConstants.h:198
const double pointsForHalfInch
Number of points in a half-inch.
Definition: hdicoreConstants.h:183
const double pointsFor1mm
Number of points in a millimeter.
Definition: hdicoreConstants.h:188
const double maxFloatPrecision
Maximum float type precision.
Definition: hdicoreConstants.h:24
const double centimetersPerMeter
Number of centimeters per meter.
Definition: hdicoreConstants.h:66
const double metersPerKilometer
Number of meters per kilometer.
Definition: hdicoreConstants.h:71
const double sqPointsPerAcre
Number of square points per acre.
Definition: hdicoreConstants.h:86
const double feetPerMile
Number of feet per mile.
Definition: hdicoreConstants.h:56
const double pointsPerThou
Number of points per thou (mil)
Definition: hdicoreConstants.h:96
const double feetPerYard
Number of feet per yard.
Definition: hdicoreConstants.h:51
const double pointsPerShaku
Number of points per shaku (this unit is only used in Japan)
Definition: hdicoreConstants.h:141
const double millimetersPerInch
Number of millimeters per inch.
Definition: hdicoreConstants.h:41
const double thousPerInch
Number of thous (mils) per inch.
Definition: hdicoreConstants.h:36
const double pointsPerPica
Number of points per pica.
Definition: hdicoreConstants.h:76
const double pointsPerCentimeter
Number of points per centimeter.
Definition: hdicoreConstants.h:126
const double sqPointsPerHectare
Number of square points per hectare.
Definition: hdicoreConstants.h:91
const double pointsFor1cm
Number of points in a centimeter.
Definition: hdicoreConstants.h:193
const double pointsForInch8th
Number of points in an eighth of an inch.
Definition: hdicoreConstants.h:173
const double inchesPerFoot
Number of inches per foot.
Definition: hdicoreConstants.h:46
const double bezierKappa
Distance to travel away from an anchor point, relative to the desired circle radius,...
Definition: hdicoreConstants.h:148
const long setupFailedErrorCode
This error code is displayed graphically (at startup) when pluginSetup() returns false.
Definition: hdicoreConstants.h:17
const double pointsPerMeter
Number of points per meter.
Definition: hdicoreConstants.h:131
const double pointsForInch4th
Number of points in a quarter of an inch.
Definition: hdicoreConstants.h:178
const double pointsPerMillimeter
Number of points per millimeter.
Definition: hdicoreConstants.h:121
const double pointsForInch16th
Number of points in a 16th of an inch.
Definition: hdicoreConstants.h:168
const double bezierMagicNumber
Similar to bezierKappa, but as the fraction of the diameter distance instead.
Definition: hdicoreConstants.h:153
const double pointsPerYard
Number of points per yard.
Definition: hdicoreConstants.h:111
const double pointsForInch32nd
Number of points in a 32nd of an inch.
Definition: hdicoreConstants.h:163
const double pointsFor1km
Number of points in a kilometer.
Definition: hdicoreConstants.h:203
const double maxDoublePrecision
Maximum double type precision.
Definition: hdicoreConstants.h:31
const double shakusPerMeter
Number of shakus per meter (this unit is only used in Japan)
Definition: hdicoreConstants.h:81
const double millimetersPerCentimeter
Number of millimeters per centimeter.
Definition: hdicoreConstants.h:61
const double pointsPerMile
Number of points per mile.
Definition: hdicoreConstants.h:116
const double pointsPerKilometer
Number of points per kilometer.
Definition: hdicoreConstants.h:136
const double pointsPerInch
Number of points per inch.
Definition: hdicoreConstants.h:101
const double pointsForInch64th
Number of points in a 64th of an inch.
Definition: hdicoreConstants.h:158