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

Go to the source code of this file.

Data Structures

struct  _graphene_vec3_t
 

Functions

GRAPHENE_AVAILABLE_IN_1_0 graphene_vec3_tgraphene_vec3_alloc (void)
 
GRAPHENE_AVAILABLE_IN_1_0 void graphene_vec3_free (graphene_vec3_t *v)
 
GRAPHENE_AVAILABLE_IN_1_0 graphene_vec3_tgraphene_vec3_init (graphene_vec3_t *v, float x, float y, float z)
 
GRAPHENE_AVAILABLE_IN_1_0 graphene_vec3_tgraphene_vec3_init_from_vec3 (graphene_vec3_t *v, const graphene_vec3_t *src)
 
GRAPHENE_AVAILABLE_IN_1_0 graphene_vec3_tgraphene_vec3_init_from_float (graphene_vec3_t *v, const float *src)
 
GRAPHENE_AVAILABLE_IN_1_0 void graphene_vec3_to_float (const graphene_vec3_t *v, float *dest)
 
GRAPHENE_AVAILABLE_IN_1_0 void graphene_vec3_add (const graphene_vec3_t *a, const graphene_vec3_t *b, graphene_vec3_t *res)
 
GRAPHENE_AVAILABLE_IN_1_0 void graphene_vec3_subtract (const graphene_vec3_t *a, const graphene_vec3_t *b, graphene_vec3_t *res)
 
GRAPHENE_AVAILABLE_IN_1_0 void graphene_vec3_multiply (const graphene_vec3_t *a, const graphene_vec3_t *b, graphene_vec3_t *res)
 
GRAPHENE_AVAILABLE_IN_1_0 void graphene_vec3_divide (const graphene_vec3_t *a, const graphene_vec3_t *b, graphene_vec3_t *res)
 
GRAPHENE_AVAILABLE_IN_1_0 void graphene_vec3_cross (const graphene_vec3_t *a, const graphene_vec3_t *b, graphene_vec3_t *res)
 
GRAPHENE_AVAILABLE_IN_1_0 float graphene_vec3_dot (const graphene_vec3_t *a, const graphene_vec3_t *b)
 
GRAPHENE_AVAILABLE_IN_1_0 float graphene_vec3_length (const graphene_vec3_t *v)
 
GRAPHENE_AVAILABLE_IN_1_0 void graphene_vec3_normalize (const graphene_vec3_t *v, graphene_vec3_t *res)
 
GRAPHENE_AVAILABLE_IN_1_2 void graphene_vec3_scale (const graphene_vec3_t *v, float factor, graphene_vec3_t *res)
 
GRAPHENE_AVAILABLE_IN_1_2 void graphene_vec3_negate (const graphene_vec3_t *v, graphene_vec3_t *res)
 
GRAPHENE_AVAILABLE_IN_1_2 bool graphene_vec3_equal (const graphene_vec3_t *v1, const graphene_vec3_t *v2)
 
GRAPHENE_AVAILABLE_IN_1_2 bool graphene_vec3_near (const graphene_vec3_t *v1, const graphene_vec3_t *v2, float epsilon)
 
GRAPHENE_AVAILABLE_IN_1_0 void graphene_vec3_min (const graphene_vec3_t *a, const graphene_vec3_t *b, graphene_vec3_t *res)
 
GRAPHENE_AVAILABLE_IN_1_0 void graphene_vec3_max (const graphene_vec3_t *a, const graphene_vec3_t *b, graphene_vec3_t *res)
 
GRAPHENE_AVAILABLE_IN_1_10 void graphene_vec3_interpolate (const graphene_vec3_t *v1, const graphene_vec3_t *v2, double factor, graphene_vec3_t *res)
 
GRAPHENE_AVAILABLE_IN_1_0 float graphene_vec3_get_x (const graphene_vec3_t *v)
 
GRAPHENE_AVAILABLE_IN_1_0 float graphene_vec3_get_y (const graphene_vec3_t *v)
 
GRAPHENE_AVAILABLE_IN_1_0 float graphene_vec3_get_z (const graphene_vec3_t *v)
 
GRAPHENE_AVAILABLE_IN_1_0 void graphene_vec3_get_xy (const graphene_vec3_t *v, graphene_vec2_t *res)
 
GRAPHENE_AVAILABLE_IN_1_0 void graphene_vec3_get_xy0 (const graphene_vec3_t *v, graphene_vec3_t *res)
 
GRAPHENE_AVAILABLE_IN_1_0 void graphene_vec3_get_xyz0 (const graphene_vec3_t *v, graphene_vec4_t *res)
 
GRAPHENE_AVAILABLE_IN_1_0 void graphene_vec3_get_xyz1 (const graphene_vec3_t *v, graphene_vec4_t *res)
 
GRAPHENE_AVAILABLE_IN_1_0 void graphene_vec3_get_xyzw (const graphene_vec3_t *v, float w, graphene_vec4_t *res)
 
GRAPHENE_AVAILABLE_IN_1_0 const graphene_vec3_tgraphene_vec3_zero (void)
 
GRAPHENE_AVAILABLE_IN_1_0 const graphene_vec3_tgraphene_vec3_one (void)
 
GRAPHENE_AVAILABLE_IN_1_0 const graphene_vec3_tgraphene_vec3_x_axis (void)
 
GRAPHENE_AVAILABLE_IN_1_0 const graphene_vec3_tgraphene_vec3_y_axis (void)
 
GRAPHENE_AVAILABLE_IN_1_0 const graphene_vec3_tgraphene_vec3_z_axis (void)
 

Function Documentation

◆ graphene_vec3_add()

GRAPHENE_AVAILABLE_IN_1_0 void graphene_vec3_add ( const graphene_vec3_t * a,
const graphene_vec3_t * b,
graphene_vec3_t * res )

◆ graphene_vec3_alloc()

GRAPHENE_AVAILABLE_IN_1_0 graphene_vec3_t * graphene_vec3_alloc ( void )

◆ graphene_vec3_cross()

GRAPHENE_AVAILABLE_IN_1_0 void graphene_vec3_cross ( const graphene_vec3_t * a,
const graphene_vec3_t * b,
graphene_vec3_t * res )

◆ graphene_vec3_divide()

GRAPHENE_AVAILABLE_IN_1_0 void graphene_vec3_divide ( const graphene_vec3_t * a,
const graphene_vec3_t * b,
graphene_vec3_t * res )

◆ graphene_vec3_dot()

GRAPHENE_AVAILABLE_IN_1_0 float graphene_vec3_dot ( const graphene_vec3_t * a,
const graphene_vec3_t * b )

◆ graphene_vec3_equal()

GRAPHENE_AVAILABLE_IN_1_2 bool graphene_vec3_equal ( const graphene_vec3_t * v1,
const graphene_vec3_t * v2 )

◆ graphene_vec3_free()

GRAPHENE_AVAILABLE_IN_1_0 void graphene_vec3_free ( graphene_vec3_t * v)

◆ graphene_vec3_get_x()

GRAPHENE_AVAILABLE_IN_1_0 float graphene_vec3_get_x ( const graphene_vec3_t * v)

◆ graphene_vec3_get_xy()

GRAPHENE_AVAILABLE_IN_1_0 void graphene_vec3_get_xy ( const graphene_vec3_t * v,
graphene_vec2_t * res )

◆ graphene_vec3_get_xy0()

GRAPHENE_AVAILABLE_IN_1_0 void graphene_vec3_get_xy0 ( const graphene_vec3_t * v,
graphene_vec3_t * res )

◆ graphene_vec3_get_xyz0()

GRAPHENE_AVAILABLE_IN_1_0 void graphene_vec3_get_xyz0 ( const graphene_vec3_t * v,
graphene_vec4_t * res )

◆ graphene_vec3_get_xyz1()

GRAPHENE_AVAILABLE_IN_1_0 void graphene_vec3_get_xyz1 ( const graphene_vec3_t * v,
graphene_vec4_t * res )

◆ graphene_vec3_get_xyzw()

GRAPHENE_AVAILABLE_IN_1_0 void graphene_vec3_get_xyzw ( const graphene_vec3_t * v,
float w,
graphene_vec4_t * res )

◆ graphene_vec3_get_y()

GRAPHENE_AVAILABLE_IN_1_0 float graphene_vec3_get_y ( const graphene_vec3_t * v)

◆ graphene_vec3_get_z()

GRAPHENE_AVAILABLE_IN_1_0 float graphene_vec3_get_z ( const graphene_vec3_t * v)

◆ graphene_vec3_init()

GRAPHENE_AVAILABLE_IN_1_0 graphene_vec3_t * graphene_vec3_init ( graphene_vec3_t * v,
float x,
float y,
float z )

◆ graphene_vec3_init_from_float()

GRAPHENE_AVAILABLE_IN_1_0 graphene_vec3_t * graphene_vec3_init_from_float ( graphene_vec3_t * v,
const float * src )

◆ graphene_vec3_init_from_vec3()

GRAPHENE_AVAILABLE_IN_1_0 graphene_vec3_t * graphene_vec3_init_from_vec3 ( graphene_vec3_t * v,
const graphene_vec3_t * src )

◆ graphene_vec3_interpolate()

GRAPHENE_AVAILABLE_IN_1_10 void graphene_vec3_interpolate ( const graphene_vec3_t * v1,
const graphene_vec3_t * v2,
double factor,
graphene_vec3_t * res )

◆ graphene_vec3_length()

GRAPHENE_AVAILABLE_IN_1_0 float graphene_vec3_length ( const graphene_vec3_t * v)

◆ graphene_vec3_max()

GRAPHENE_AVAILABLE_IN_1_0 void graphene_vec3_max ( const graphene_vec3_t * a,
const graphene_vec3_t * b,
graphene_vec3_t * res )

◆ graphene_vec3_min()

GRAPHENE_AVAILABLE_IN_1_0 void graphene_vec3_min ( const graphene_vec3_t * a,
const graphene_vec3_t * b,
graphene_vec3_t * res )

◆ graphene_vec3_multiply()

GRAPHENE_AVAILABLE_IN_1_0 void graphene_vec3_multiply ( const graphene_vec3_t * a,
const graphene_vec3_t * b,
graphene_vec3_t * res )

◆ graphene_vec3_near()

GRAPHENE_AVAILABLE_IN_1_2 bool graphene_vec3_near ( const graphene_vec3_t * v1,
const graphene_vec3_t * v2,
float epsilon )

◆ graphene_vec3_negate()

GRAPHENE_AVAILABLE_IN_1_2 void graphene_vec3_negate ( const graphene_vec3_t * v,
graphene_vec3_t * res )

◆ graphene_vec3_normalize()

GRAPHENE_AVAILABLE_IN_1_0 void graphene_vec3_normalize ( const graphene_vec3_t * v,
graphene_vec3_t * res )

◆ graphene_vec3_one()

GRAPHENE_AVAILABLE_IN_1_0 const graphene_vec3_t * graphene_vec3_one ( void )

◆ graphene_vec3_scale()

GRAPHENE_AVAILABLE_IN_1_2 void graphene_vec3_scale ( const graphene_vec3_t * v,
float factor,
graphene_vec3_t * res )

◆ graphene_vec3_subtract()

GRAPHENE_AVAILABLE_IN_1_0 void graphene_vec3_subtract ( const graphene_vec3_t * a,
const graphene_vec3_t * b,
graphene_vec3_t * res )

◆ graphene_vec3_to_float()

GRAPHENE_AVAILABLE_IN_1_0 void graphene_vec3_to_float ( const graphene_vec3_t * v,
float * dest )

◆ graphene_vec3_x_axis()

GRAPHENE_AVAILABLE_IN_1_0 const graphene_vec3_t * graphene_vec3_x_axis ( void )

◆ graphene_vec3_y_axis()

GRAPHENE_AVAILABLE_IN_1_0 const graphene_vec3_t * graphene_vec3_y_axis ( void )

◆ graphene_vec3_z_axis()

GRAPHENE_AVAILABLE_IN_1_0 const graphene_vec3_t * graphene_vec3_z_axis ( void )

◆ graphene_vec3_zero()

GRAPHENE_AVAILABLE_IN_1_0 const graphene_vec3_t * graphene_vec3_zero ( void )