GRASS GIS 7 Programmer's Manual  7.5.svn(2018)-r72636
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
text_size.c
Go to the documentation of this file.
1 #include <math.h>
2 #include "driver.h"
3 #include "driverlib.h"
4 
5 void COM_Text_size(double x, double y)
6 {
7  text_size_x = x;
8  text_size_y = y;
9  matrix_valid = 0;
10 }
11 
12 void COM_Text_rotation(double val)
13 {
14  text_rotation = val;
15  text_sinrot = sin(M_PI * text_rotation / 180.0);
16  text_cosrot = cos(M_PI * text_rotation / 180.0);
17  matrix_valid = 0;
18 }
double text_size_y
Definition: driver/init.c:36
double text_sinrot
Definition: driver/init.c:38
#define M_PI
Definition: gis.h:115
#define x
double text_rotation
Definition: driver/init.c:37
double text_size_x
Definition: driver/init.c:35
void COM_Text_rotation(double)
Definition: text_size.c:12
void COM_Text_size(double, double)
Definition: text_size.c:5
int matrix_valid
Definition: driver/init.c:40
double text_cosrot
Definition: driver/init.c:39