Github User Fetcher 1.0.0
C Application with Server and GUI
Loading...
Searching...
No Matches
graphene-vec2.h File Reference
#include "graphene-types.h"

Go to the source code of this file.

Data Structures

struct  _graphene_vec2_t
 

Functions

GRAPHENE_AVAILABLE_IN_1_0 graphene_vec2_tgraphene_vec2_alloc (void)
 
GRAPHENE_AVAILABLE_IN_1_0 void graphene_vec2_free (graphene_vec2_t *v)
 
GRAPHENE_AVAILABLE_IN_1_0 graphene_vec2_tgraphene_vec2_init (graphene_vec2_t *v, float x, float y)
 
GRAPHENE_AVAILABLE_IN_1_0 graphene_vec2_tgraphene_vec2_init_from_vec2 (graphene_vec2_t *v, const graphene_vec2_t *src)
 
GRAPHENE_AVAILABLE_IN_1_0 graphene_vec2_tgraphene_vec2_init_from_float (graphene_vec2_t *v, const float *src)
 
GRAPHENE_AVAILABLE_IN_1_0 void graphene_vec2_to_float (const graphene_vec2_t *v, float *dest)
 
GRAPHENE_AVAILABLE_IN_1_0 void graphene_vec2_add (const graphene_vec2_t *a, const graphene_vec2_t *b, graphene_vec2_t *res)
 
GRAPHENE_AVAILABLE_IN_1_0 void graphene_vec2_subtract (const graphene_vec2_t *a, const graphene_vec2_t *b, graphene_vec2_t *res)
 
GRAPHENE_AVAILABLE_IN_1_0 void graphene_vec2_multiply (const graphene_vec2_t *a, const graphene_vec2_t *b, graphene_vec2_t *res)
 
GRAPHENE_AVAILABLE_IN_1_0 void graphene_vec2_divide (const graphene_vec2_t *a, const graphene_vec2_t *b, graphene_vec2_t *res)
 
GRAPHENE_AVAILABLE_IN_1_0 float graphene_vec2_dot (const graphene_vec2_t *a, const graphene_vec2_t *b)
 
GRAPHENE_AVAILABLE_IN_1_0 float graphene_vec2_length (const graphene_vec2_t *v)
 
GRAPHENE_AVAILABLE_IN_1_0 void graphene_vec2_normalize (const graphene_vec2_t *v, graphene_vec2_t *res)
 
GRAPHENE_AVAILABLE_IN_1_2 void graphene_vec2_scale (const graphene_vec2_t *v, float factor, graphene_vec2_t *res)
 
GRAPHENE_AVAILABLE_IN_1_2 void graphene_vec2_negate (const graphene_vec2_t *v, graphene_vec2_t *res)
 
GRAPHENE_AVAILABLE_IN_1_2 bool graphene_vec2_near (const graphene_vec2_t *v1, const graphene_vec2_t *v2, float epsilon)
 
GRAPHENE_AVAILABLE_IN_1_2 bool graphene_vec2_equal (const graphene_vec2_t *v1, const graphene_vec2_t *v2)
 
GRAPHENE_AVAILABLE_IN_1_0 void graphene_vec2_min (const graphene_vec2_t *a, const graphene_vec2_t *b, graphene_vec2_t *res)
 
GRAPHENE_AVAILABLE_IN_1_0 void graphene_vec2_max (const graphene_vec2_t *a, const graphene_vec2_t *b, graphene_vec2_t *res)
 
GRAPHENE_AVAILABLE_IN_1_10 void graphene_vec2_interpolate (const graphene_vec2_t *v1, const graphene_vec2_t *v2, double factor, graphene_vec2_t *res)
 
GRAPHENE_AVAILABLE_IN_1_0 float graphene_vec2_get_x (const graphene_vec2_t *v)
 
GRAPHENE_AVAILABLE_IN_1_0 float graphene_vec2_get_y (const graphene_vec2_t *v)
 
GRAPHENE_AVAILABLE_IN_1_0 const graphene_vec2_tgraphene_vec2_zero (void)
 
GRAPHENE_AVAILABLE_IN_1_0 const graphene_vec2_tgraphene_vec2_one (void)
 
GRAPHENE_AVAILABLE_IN_1_0 const graphene_vec2_tgraphene_vec2_x_axis (void)
 
GRAPHENE_AVAILABLE_IN_1_0 const graphene_vec2_tgraphene_vec2_y_axis (void)
 

Function Documentation

◆ graphene_vec2_add()

GRAPHENE_AVAILABLE_IN_1_0 void graphene_vec2_add ( const graphene_vec2_t * a,
const graphene_vec2_t * b,
graphene_vec2_t * res )

◆ graphene_vec2_alloc()

GRAPHENE_AVAILABLE_IN_1_0 graphene_vec2_t * graphene_vec2_alloc ( void )

◆ graphene_vec2_divide()

GRAPHENE_AVAILABLE_IN_1_0 void graphene_vec2_divide ( const graphene_vec2_t * a,
const graphene_vec2_t * b,
graphene_vec2_t * res )

◆ graphene_vec2_dot()

GRAPHENE_AVAILABLE_IN_1_0 float graphene_vec2_dot ( const graphene_vec2_t * a,
const graphene_vec2_t * b )

◆ graphene_vec2_equal()

GRAPHENE_AVAILABLE_IN_1_2 bool graphene_vec2_equal ( const graphene_vec2_t * v1,
const graphene_vec2_t * v2 )

◆ graphene_vec2_free()

GRAPHENE_AVAILABLE_IN_1_0 void graphene_vec2_free ( graphene_vec2_t * v)

◆ graphene_vec2_get_x()

GRAPHENE_AVAILABLE_IN_1_0 float graphene_vec2_get_x ( const graphene_vec2_t * v)

◆ graphene_vec2_get_y()

GRAPHENE_AVAILABLE_IN_1_0 float graphene_vec2_get_y ( const graphene_vec2_t * v)

◆ graphene_vec2_init()

GRAPHENE_AVAILABLE_IN_1_0 graphene_vec2_t * graphene_vec2_init ( graphene_vec2_t * v,
float x,
float y )

◆ graphene_vec2_init_from_float()

GRAPHENE_AVAILABLE_IN_1_0 graphene_vec2_t * graphene_vec2_init_from_float ( graphene_vec2_t * v,
const float * src )

◆ graphene_vec2_init_from_vec2()

GRAPHENE_AVAILABLE_IN_1_0 graphene_vec2_t * graphene_vec2_init_from_vec2 ( graphene_vec2_t * v,
const graphene_vec2_t * src )

◆ graphene_vec2_interpolate()

GRAPHENE_AVAILABLE_IN_1_10 void graphene_vec2_interpolate ( const graphene_vec2_t * v1,
const graphene_vec2_t * v2,
double factor,
graphene_vec2_t * res )

◆ graphene_vec2_length()

GRAPHENE_AVAILABLE_IN_1_0 float graphene_vec2_length ( const graphene_vec2_t * v)

◆ graphene_vec2_max()

GRAPHENE_AVAILABLE_IN_1_0 void graphene_vec2_max ( const graphene_vec2_t * a,
const graphene_vec2_t * b,
graphene_vec2_t * res )

◆ graphene_vec2_min()

GRAPHENE_AVAILABLE_IN_1_0 void graphene_vec2_min ( const graphene_vec2_t * a,
const graphene_vec2_t * b,
graphene_vec2_t * res )

◆ graphene_vec2_multiply()

GRAPHENE_AVAILABLE_IN_1_0 void graphene_vec2_multiply ( const graphene_vec2_t * a,
const graphene_vec2_t * b,
graphene_vec2_t * res )

◆ graphene_vec2_near()

GRAPHENE_AVAILABLE_IN_1_2 bool graphene_vec2_near ( const graphene_vec2_t * v1,
const graphene_vec2_t * v2,
float epsilon )

◆ graphene_vec2_negate()

GRAPHENE_AVAILABLE_IN_1_2 void graphene_vec2_negate ( const graphene_vec2_t * v,
graphene_vec2_t * res )

◆ graphene_vec2_normalize()

GRAPHENE_AVAILABLE_IN_1_0 void graphene_vec2_normalize ( const graphene_vec2_t * v,
graphene_vec2_t * res )

◆ graphene_vec2_one()

GRAPHENE_AVAILABLE_IN_1_0 const graphene_vec2_t * graphene_vec2_one ( void )

◆ graphene_vec2_scale()

GRAPHENE_AVAILABLE_IN_1_2 void graphene_vec2_scale ( const graphene_vec2_t * v,
float factor,
graphene_vec2_t * res )

◆ graphene_vec2_subtract()

GRAPHENE_AVAILABLE_IN_1_0 void graphene_vec2_subtract ( const graphene_vec2_t * a,
const graphene_vec2_t * b,
graphene_vec2_t * res )

◆ graphene_vec2_to_float()

GRAPHENE_AVAILABLE_IN_1_0 void graphene_vec2_to_float ( const graphene_vec2_t * v,
float * dest )

◆ graphene_vec2_x_axis()

GRAPHENE_AVAILABLE_IN_1_0 const graphene_vec2_t * graphene_vec2_x_axis ( void )

◆ graphene_vec2_y_axis()

GRAPHENE_AVAILABLE_IN_1_0 const graphene_vec2_t * graphene_vec2_y_axis ( void )

◆ graphene_vec2_zero()

GRAPHENE_AVAILABLE_IN_1_0 const graphene_vec2_t * graphene_vec2_zero ( void )