summaryrefslogtreecommitdiff
path: root/include/freetype/fttrigon.h
diff options
context:
space:
mode:
authorDavid Turner <david@freetype.org>2002-06-26 23:45:21 +0000
committerDavid Turner <david@freetype.org>2002-06-26 23:45:21 +0000
commit0d73b0c49abc97cb89d05bb5295769f289d271e2 (patch)
tree05749378f6ad03acd04c8d39999b45d98b4302a8 /include/freetype/fttrigon.h
parentb7e18efcd2d6a71ec1a4bdf167f78d707ac91593 (diff)
downloadfreetype2-0d73b0c49abc97cb89d05bb5295769f289d271e2.tar.gz
* include/freetype/internal/ftobject.h: updating the object sub-system
definitions (still experimental) * src/base/fthash.c (ft_hash_remove): fixing a small reallocation bug * include/freetype/fttrigon.h, src/base/fttrigon.c: adding FT_Vector_From_Polar and FT_Angle_Diff to the trigonometric functions * include/freetype/ftstroker.h, src/base/ftstroker.c: adding path stroker component (work in progress)
Diffstat (limited to 'include/freetype/fttrigon.h')
-rw-r--r--include/freetype/fttrigon.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/include/freetype/fttrigon.h b/include/freetype/fttrigon.h
index 54870bc43..07da694d5 100644
--- a/include/freetype/fttrigon.h
+++ b/include/freetype/fttrigon.h
@@ -291,6 +291,28 @@ FT_BEGIN_HEADER
FT_Vector_Polarize( FT_Vector* vec,
FT_Fixed *length,
FT_Angle *angle );
+
+
+ /*************************************************************************/
+ /* */
+ /* @function: */
+ /* FT_Vector_From_Polar */
+ /* */
+ /* @description: */
+ /* Compute vector coordinates from a length and angle. */
+ /* */
+ /* @output: */
+ /* vec :: The address of source vector. */
+ /* */
+ /* @input: */
+ /* length :: The vector length. */
+ /* angle :: The vector angle. */
+ /* */
+ FT_EXPORT( void )
+ FT_Vector_From_Polar( FT_Vector* vec,
+ FT_Fixed length,
+ FT_Angle angle );
+
/* */