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 | Variables
fttrigon.h File Reference

Go to the source code of this file.

Macros

#define FT_ANGLE_PI   ( 180L << 16 )
 
#define FT_ANGLE_2PI   ( FT_ANGLE_PI * 2 )
 
#define FT_ANGLE_PI2   ( FT_ANGLE_PI / 2 )
 
#define FT_ANGLE_PI4   ( FT_ANGLE_PI / 4 )
 

Functions

 FT_Sin (FT_Angle angle)
 
 FT_Cos (FT_Angle angle)
 
 FT_Tan (FT_Angle angle)
 
 FT_Atan2 (FT_Fixed x, FT_Fixed y)
 
 FT_Angle_Diff (FT_Angle angle1, FT_Angle angle2)
 
 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)
 

Variables

FT_BEGIN_HEADER typedef FT_Fixed FT_Angle
 

Macro Definition Documentation

◆ FT_ANGLE_2PI

#define FT_ANGLE_2PI   ( FT_ANGLE_PI * 2 )

Definition at line 76 of file fttrigon.h.

Referenced by FT_Angle_Diff().

◆ FT_ANGLE_PI

#define FT_ANGLE_PI   ( 180L << 16 )

Definition at line 64 of file fttrigon.h.

Referenced by FT_Angle_Diff().

◆ FT_ANGLE_PI2

#define FT_ANGLE_PI2   ( FT_ANGLE_PI / 2 )

Definition at line 88 of file fttrigon.h.

Referenced by FT_Sin(), and FT_Stroker_LineTo().

◆ FT_ANGLE_PI4

#define FT_ANGLE_PI4   ( FT_ANGLE_PI / 4 )

Definition at line 100 of file fttrigon.h.

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  x,
FT_Fixed  y 
)

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.

Variable Documentation

◆ FT_Angle

FT_BEGIN_HEADER typedef FT_Fixed FT_Angle