GDS-Render v1.2.1
vector-operations.h File Reference

Header for 2D Vector operations. More...

#include <math.h>
Include dependency graph for vector-operations.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  vector_2d
 

Macros

#define DEG2RAD(a)   ((a)*M_PI/180.0)
 

Functions

double vector_2d_scalar_multipy (struct vector_2d *a, struct vector_2d *b)
 
void vector_2d_normalize (struct vector_2d *vec)
 
void vector_2d_rotate (struct vector_2d *vec, double angle)
 
struct vector_2dvector_2d_copy (struct vector_2d *opt_res, struct vector_2d *vec)
 
struct vector_2dvector_2d_alloc (void)
 
void vector_2d_free (struct vector_2d *vec)
 
void vector_2d_scale (struct vector_2d *vec, double scale)
 
double vector_2d_abs (struct vector_2d *vec)
 
double vector_2d_calculate_angle_between (struct vector_2d *a, struct vector_2d *b)
 
void vector_2d_subtract (struct vector_2d *res, struct vector_2d *a, struct vector_2d *b)
 
void vector_2d_add (struct vector_2d *res, struct vector_2d *a, struct vector_2d *b)
 

Detailed Description

Header for 2D Vector operations.

Author
Mario Hüttel mario.nosp@m..hue.nosp@m.ttel@.nosp@m.gmx..nosp@m.net

Definition in file vector-operations.h.