OLD | NEW |
1 /***************************************************************************/ | 1 /***************************************************************************/ |
2 /* */ | 2 /* */ |
3 /* fttrigon.h */ | 3 /* fttrigon.h */ |
4 /* */ | 4 /* */ |
5 /* FreeType trigonometric functions (specification). */ | 5 /* FreeType trigonometric functions (specification). */ |
6 /* */ | 6 /* */ |
7 /* Copyright 2001, 2003, 2005, 2007 by */ | 7 /* Copyright 2001, 2003, 2005, 2007, 2013 by */ |
8 /* David Turner, Robert Wilhelm, and Werner Lemberg. */ | 8 /* David Turner, Robert Wilhelm, and Werner Lemberg. */ |
9 /* */ | 9 /* */ |
10 /* This file is part of the FreeType project, and may only be used, */ | 10 /* This file is part of the FreeType project, and may only be used, */ |
11 /* modified, and distributed under the terms of the FreeType project */ | 11 /* modified, and distributed under the terms of the FreeType project */ |
12 /* license, LICENSE.TXT. By continuing to use, modify, or distribute */ | 12 /* license, LICENSE.TXT. By continuing to use, modify, or distribute */ |
13 /* this file you indicate that you have read the license and */ | 13 /* this file you indicate that you have read the license and */ |
14 /* understand and accept it fully. */ | 14 /* understand and accept it fully. */ |
15 /* */ | 15 /* */ |
16 /***************************************************************************/ | 16 /***************************************************************************/ |
17 | 17 |
(...skipping 21 matching lines...) Expand all Loading... |
39 /*************************************************************************/ | 39 /*************************************************************************/ |
40 | 40 |
41 | 41 |
42 /************************************************************************* | 42 /************************************************************************* |
43 * | 43 * |
44 * @type: | 44 * @type: |
45 * FT_Angle | 45 * FT_Angle |
46 * | 46 * |
47 * @description: | 47 * @description: |
48 * This type is used to model angle values in FreeType. Note that the | 48 * This type is used to model angle values in FreeType. Note that the |
49 * angle is a 16.16 fixed float value expressed in degrees. | 49 * angle is a 16.16 fixed-point value expressed in degrees. |
50 * | 50 * |
51 */ | 51 */ |
52 typedef FT_Fixed FT_Angle; | 52 typedef FT_Fixed FT_Angle; |
53 | 53 |
54 | 54 |
55 /************************************************************************* | 55 /************************************************************************* |
56 * | 56 * |
57 * @macro: | 57 * @macro: |
58 * FT_ANGLE_PI | 58 * FT_ANGLE_PI |
59 * | 59 * |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
99 */ | 99 */ |
100 #define FT_ANGLE_PI4 ( FT_ANGLE_PI / 4 ) | 100 #define FT_ANGLE_PI4 ( FT_ANGLE_PI / 4 ) |
101 | 101 |
102 | 102 |
103 /************************************************************************* | 103 /************************************************************************* |
104 * | 104 * |
105 * @function: | 105 * @function: |
106 * FT_Sin | 106 * FT_Sin |
107 * | 107 * |
108 * @description: | 108 * @description: |
109 * Return the sinus of a given angle in fixed point format. | 109 * Return the sinus of a given angle in fixed-point format. |
110 * | 110 * |
111 * @input: | 111 * @input: |
112 * angle :: | 112 * angle :: |
113 * The input angle. | 113 * The input angle. |
114 * | 114 * |
115 * @return: | 115 * @return: |
116 * The sinus value. | 116 * The sinus value. |
117 * | 117 * |
118 * @note: | 118 * @note: |
119 * If you need both the sinus and cosinus for a given angle, use the | 119 * If you need both the sinus and cosinus for a given angle, use the |
120 * function @FT_Vector_Unit. | 120 * function @FT_Vector_Unit. |
121 * | 121 * |
122 */ | 122 */ |
123 FT_EXPORT( FT_Fixed ) | 123 FT_EXPORT( FT_Fixed ) |
124 FT_Sin( FT_Angle angle ); | 124 FT_Sin( FT_Angle angle ); |
125 | 125 |
126 | 126 |
127 /************************************************************************* | 127 /************************************************************************* |
128 * | 128 * |
129 * @function: | 129 * @function: |
130 * FT_Cos | 130 * FT_Cos |
131 * | 131 * |
132 * @description: | 132 * @description: |
133 * Return the cosinus of a given angle in fixed point format. | 133 * Return the cosinus of a given angle in fixed-point format. |
134 * | 134 * |
135 * @input: | 135 * @input: |
136 * angle :: | 136 * angle :: |
137 * The input angle. | 137 * The input angle. |
138 * | 138 * |
139 * @return: | 139 * @return: |
140 * The cosinus value. | 140 * The cosinus value. |
141 * | 141 * |
142 * @note: | 142 * @note: |
143 * If you need both the sinus and cosinus for a given angle, use the | 143 * If you need both the sinus and cosinus for a given angle, use the |
144 * function @FT_Vector_Unit. | 144 * function @FT_Vector_Unit. |
145 * | 145 * |
146 */ | 146 */ |
147 FT_EXPORT( FT_Fixed ) | 147 FT_EXPORT( FT_Fixed ) |
148 FT_Cos( FT_Angle angle ); | 148 FT_Cos( FT_Angle angle ); |
149 | 149 |
150 | 150 |
151 /************************************************************************* | 151 /************************************************************************* |
152 * | 152 * |
153 * @function: | 153 * @function: |
154 * FT_Tan | 154 * FT_Tan |
155 * | 155 * |
156 * @description: | 156 * @description: |
157 * Return the tangent of a given angle in fixed point format. | 157 * Return the tangent of a given angle in fixed-point format. |
158 * | 158 * |
159 * @input: | 159 * @input: |
160 * angle :: | 160 * angle :: |
161 * The input angle. | 161 * The input angle. |
162 * | 162 * |
163 * @return: | 163 * @return: |
164 * The tangent value. | 164 * The tangent value. |
165 * | 165 * |
166 */ | 166 */ |
167 FT_EXPORT( FT_Fixed ) | 167 FT_EXPORT( FT_Fixed ) |
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
341 | 341 |
342 /* */ | 342 /* */ |
343 | 343 |
344 | 344 |
345 FT_END_HEADER | 345 FT_END_HEADER |
346 | 346 |
347 #endif /* __FTTRIGON_H__ */ | 347 #endif /* __FTTRIGON_H__ */ |
348 | 348 |
349 | 349 |
350 /* END */ | 350 /* END */ |
OLD | NEW |