Visualization Library 2.0.0-b5

A lightweight C++ OpenGL middleware for 2D/3D graphics

VL     Star     Watch     Fork     Issue

[Download] [Tutorials] [All Classes] [Grouped Classes]
Macros | Functions
fttrigon.c File Reference
#include <ft2build.h>

Go to the source code of this file.

Macros

#define FT_TRIG_SCALE   0xDBD95B16UL
 
#define FT_TRIG_SAFE_MSB   29
 
#define FT_TRIG_MAX_ITERS   23
 
#define FT_SIGN_LONG(x)   ( (x) >> ( FT_SIZEOF_LONG * 8 - 1 ) )
 
#define FT_SIGN_INT(x)   ( (x) >> ( FT_SIZEOF_INT * 8 - 1 ) )
 
#define FT_SIGN_INT32(x)   ( (x) >> 31 )
 
#define FT_SIGN_INT16(x)   ( (x) >> 15 )
 

Functions

 FT_Cos (FT_Angle angle)
 
 FT_Sin (FT_Angle angle)
 
 FT_Tan (FT_Angle angle)
 
 FT_Atan2 (FT_Fixed dx, FT_Fixed dy)
 
 FT_Vector_Unit (FT_Vector *vec, FT_Angle angle)
 
 FT_Vector_Rotate (FT_Vector *vec, FT_Angle angle)
 
 FT_Vector_Length (FT_Vector *vec)
 
 FT_Vector_Polarize (FT_Vector *vec, FT_Fixed *length, FT_Angle *angle)
 
 FT_Vector_From_Polar (FT_Vector *vec, FT_Fixed length, FT_Angle angle)
 
 FT_Angle_Diff (FT_Angle angle1, FT_Angle angle2)
 

Macro Definition Documentation

◆ FT_SIGN_INT

#define FT_SIGN_INT (   x)    ( (x) >> ( FT_SIZEOF_INT * 8 - 1 ) )

Definition at line 354 of file fttrigon.c.

◆ FT_SIGN_INT16

#define FT_SIGN_INT16 (   x)    ( (x) >> 15 )

Definition at line 356 of file fttrigon.c.

◆ FT_SIGN_INT32

#define FT_SIGN_INT32 (   x)    ( (x) >> 31 )

Definition at line 355 of file fttrigon.c.

◆ FT_SIGN_LONG

#define FT_SIGN_LONG (   x)    ( (x) >> ( FT_SIZEOF_LONG * 8 - 1 ) )

Definition at line 353 of file fttrigon.c.

◆ FT_TRIG_MAX_ITERS

#define FT_TRIG_MAX_ITERS   23

Definition at line 46 of file fttrigon.c.

◆ FT_TRIG_SAFE_MSB

#define FT_TRIG_SAFE_MSB   29

Definition at line 43 of file fttrigon.c.

◆ FT_TRIG_SCALE

#define FT_TRIG_SCALE   0xDBD95B16UL

Definition at line 39 of file fttrigon.c.

Referenced by FT_Cos(), FT_Tan(), and FT_Vector_Unit().

Function Documentation

◆ FT_Angle_Diff()

FT_Angle_Diff ( FT_Angle  angle1,
FT_Angle  angle2 
)

Definition at line 475 of file fttrigon.c.

References cordic::angle2, FT_Angle, FT_ANGLE_2PI, and FT_ANGLE_PI.

◆ FT_Atan2()

FT_Atan2 ( FT_Fixed  dx,
FT_Fixed  dy 
)

Definition at line 319 of file fttrigon.c.

References FT_Vector_::x, and FT_Vector_::y.

Referenced by FT_Outline_Transform(), and FT_Stroker_LineTo().

◆ FT_Cos()

FT_Cos ( FT_Angle  angle)

Definition at line 278 of file fttrigon.c.

References FT_TRIG_SCALE, FT_Vector_::x, and FT_Vector_::y.

Referenced by FT_Sin().

◆ FT_Sin()

FT_Sin ( FT_Angle  angle)

Definition at line 294 of file fttrigon.c.

References FT_ANGLE_PI2, FT_Cos(), and FT_EXPORT_DEF.

◆ FT_Tan()

FT_Tan ( FT_Angle  angle)

Definition at line 303 of file fttrigon.c.

References FT_TRIG_SCALE, FT_Vector_::x, and FT_Vector_::y.

◆ FT_Vector_From_Polar()

FT_Vector_From_Polar ( FT_Vector vec,
FT_Fixed  length,
FT_Angle  angle 
)

Definition at line 461 of file fttrigon.c.

References FT_Angle, FT_EXPORT_DEF, FT_Vector_Rotate(), FT_Vector_::x, and FT_Vector_::y.

Referenced by FT_Stroker_LineTo().

◆ FT_Vector_Length()

FT_Vector_Length ( FT_Vector vec)

Definition at line 400 of file fttrigon.c.

References FT_ABS, vec, FT_Vector_::x, and FT_Vector_::y.

Referenced by FT_Hypot(), FT_Outline_EmboldenXY(), and FT_Stroker_LineTo().

◆ FT_Vector_Polarize()

FT_Vector_Polarize ( FT_Vector vec,
FT_Fixed length,
FT_Angle angle 
)

Definition at line 434 of file fttrigon.c.

References vec, FT_Vector_::x, and FT_Vector_::y.

◆ FT_Vector_Rotate()

FT_Vector_Rotate ( FT_Vector vec,
FT_Angle  angle 
)

Definition at line 362 of file fttrigon.c.

References FT_Vector_::x, and FT_Vector_::y.

Referenced by FT_Vector_From_Polar().

◆ FT_Vector_Unit()

FT_Vector_Unit ( FT_Vector vec,
FT_Angle  angle 
)

Definition at line 340 of file fttrigon.c.

References FT_TRIG_SCALE, FT_Vector_::x, and FT_Vector_::y.