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, 2013 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 |
18 | 18 |
19 #ifndef __FTTRIGON_H__ | 19 #ifndef __FTTRIGON_H__ |
20 #define __FTTRIGON_H__ | 20 #define __FTTRIGON_H__ |
21 | 21 |
22 #include "freetype.h" | 22 #include FT_FREETYPE_H |
23 | 23 |
24 #ifdef FREETYPE_H | 24 #ifdef FREETYPE_H |
25 #error "freetype.h of FreeType 1 has been loaded!" | 25 #error "freetype.h of FreeType 1 has been loaded!" |
26 #error "Please fix the directory search order for header files" | 26 #error "Please fix the directory search order for header files" |
27 #error "so that freetype.h of FreeType 2 is found first." | 27 #error "so that freetype.h of FreeType 2 is found first." |
28 #endif | 28 #endif |
29 | 29 |
30 | 30 |
31 FT_BEGIN_HEADER | 31 FT_BEGIN_HEADER |
32 | 32 |
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
230 * | 230 * |
231 * This function is useful to retrieve both the sinus and cosinus of a | 231 * This function is useful to retrieve both the sinus and cosinus of a |
232 * given angle quickly. | 232 * given angle quickly. |
233 * | 233 * |
234 * @output: | 234 * @output: |
235 * vec :: | 235 * vec :: |
236 * The address of target vector. | 236 * The address of target vector. |
237 * | 237 * |
238 * @input: | 238 * @input: |
239 * angle :: | 239 * angle :: |
240 * The address of angle. | 240 * The input angle. |
241 * | 241 * |
242 */ | 242 */ |
243 FT_EXPORT( void ) | 243 FT_EXPORT( void ) |
244 FT_Vector_Unit( FT_Vector* vec, | 244 FT_Vector_Unit( FT_Vector* vec, |
245 FT_Angle angle ); | 245 FT_Angle angle ); |
246 | 246 |
247 | 247 |
248 /************************************************************************* | 248 /************************************************************************* |
249 * | 249 * |
250 * @function: | 250 * @function: |
251 * FT_Vector_Rotate | 251 * FT_Vector_Rotate |
252 * | 252 * |
253 * @description: | 253 * @description: |
254 * Rotate a vector by a given angle. | 254 * Rotate a vector by a given angle. |
255 * | 255 * |
256 * @inout: | 256 * @inout: |
257 * vec :: | 257 * vec :: |
258 * The address of target vector. | 258 * The address of target vector. |
259 * | 259 * |
260 * @input: | 260 * @input: |
261 * angle :: | 261 * angle :: |
262 * The address of angle. | 262 * The input angle. |
263 * | 263 * |
264 */ | 264 */ |
265 FT_EXPORT( void ) | 265 FT_EXPORT( void ) |
266 FT_Vector_Rotate( FT_Vector* vec, | 266 FT_Vector_Rotate( FT_Vector* vec, |
267 FT_Angle angle ); | 267 FT_Angle angle ); |
268 | 268 |
269 | 269 |
270 /************************************************************************* | 270 /************************************************************************* |
271 * | 271 * |
272 * @function: | 272 * @function: |
(...skipping 68 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 |