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

Go to the source code of this file.

Data Structures

struct  _graphene_sphere_t
 

Functions

GRAPHENE_AVAILABLE_IN_1_2 graphene_sphere_tgraphene_sphere_alloc (void)
 
GRAPHENE_AVAILABLE_IN_1_2 void graphene_sphere_free (graphene_sphere_t *s)
 
GRAPHENE_AVAILABLE_IN_1_2 graphene_sphere_tgraphene_sphere_init (graphene_sphere_t *s, const graphene_point3d_t *center, float radius)
 
GRAPHENE_AVAILABLE_IN_1_2 graphene_sphere_tgraphene_sphere_init_from_points (graphene_sphere_t *s, unsigned int n_points, const graphene_point3d_t *points, const graphene_point3d_t *center)
 
GRAPHENE_AVAILABLE_IN_1_2 graphene_sphere_tgraphene_sphere_init_from_vectors (graphene_sphere_t *s, unsigned int n_vectors, const graphene_vec3_t *vectors, const graphene_point3d_t *center)
 
GRAPHENE_AVAILABLE_IN_1_2 void graphene_sphere_get_center (const graphene_sphere_t *s, graphene_point3d_t *center)
 
GRAPHENE_AVAILABLE_IN_1_2 float graphene_sphere_get_radius (const graphene_sphere_t *s)
 
GRAPHENE_AVAILABLE_IN_1_2 bool graphene_sphere_is_empty (const graphene_sphere_t *s)
 
GRAPHENE_AVAILABLE_IN_1_2 bool graphene_sphere_equal (const graphene_sphere_t *a, const graphene_sphere_t *b)
 
GRAPHENE_AVAILABLE_IN_1_2 bool graphene_sphere_contains_point (const graphene_sphere_t *s, const graphene_point3d_t *point)
 
GRAPHENE_AVAILABLE_IN_1_2 float graphene_sphere_distance (const graphene_sphere_t *s, const graphene_point3d_t *point)
 
GRAPHENE_AVAILABLE_IN_1_2 void graphene_sphere_get_bounding_box (const graphene_sphere_t *s, graphene_box_t *box)
 
GRAPHENE_AVAILABLE_IN_1_2 void graphene_sphere_translate (const graphene_sphere_t *s, const graphene_point3d_t *point, graphene_sphere_t *res)
 

Function Documentation

◆ graphene_sphere_alloc()

GRAPHENE_AVAILABLE_IN_1_2 graphene_sphere_t * graphene_sphere_alloc ( void )

◆ graphene_sphere_contains_point()

GRAPHENE_AVAILABLE_IN_1_2 bool graphene_sphere_contains_point ( const graphene_sphere_t * s,
const graphene_point3d_t * point )

◆ graphene_sphere_distance()

GRAPHENE_AVAILABLE_IN_1_2 float graphene_sphere_distance ( const graphene_sphere_t * s,
const graphene_point3d_t * point )

◆ graphene_sphere_equal()

GRAPHENE_AVAILABLE_IN_1_2 bool graphene_sphere_equal ( const graphene_sphere_t * a,
const graphene_sphere_t * b )

◆ graphene_sphere_free()

GRAPHENE_AVAILABLE_IN_1_2 void graphene_sphere_free ( graphene_sphere_t * s)

◆ graphene_sphere_get_bounding_box()

GRAPHENE_AVAILABLE_IN_1_2 void graphene_sphere_get_bounding_box ( const graphene_sphere_t * s,
graphene_box_t * box )

◆ graphene_sphere_get_center()

GRAPHENE_AVAILABLE_IN_1_2 void graphene_sphere_get_center ( const graphene_sphere_t * s,
graphene_point3d_t * center )

◆ graphene_sphere_get_radius()

GRAPHENE_AVAILABLE_IN_1_2 float graphene_sphere_get_radius ( const graphene_sphere_t * s)

◆ graphene_sphere_init()

GRAPHENE_AVAILABLE_IN_1_2 graphene_sphere_t * graphene_sphere_init ( graphene_sphere_t * s,
const graphene_point3d_t * center,
float radius )

◆ graphene_sphere_init_from_points()

GRAPHENE_AVAILABLE_IN_1_2 graphene_sphere_t * graphene_sphere_init_from_points ( graphene_sphere_t * s,
unsigned int n_points,
const graphene_point3d_t * points,
const graphene_point3d_t * center )

◆ graphene_sphere_init_from_vectors()

GRAPHENE_AVAILABLE_IN_1_2 graphene_sphere_t * graphene_sphere_init_from_vectors ( graphene_sphere_t * s,
unsigned int n_vectors,
const graphene_vec3_t * vectors,
const graphene_point3d_t * center )

◆ graphene_sphere_is_empty()

GRAPHENE_AVAILABLE_IN_1_2 bool graphene_sphere_is_empty ( const graphene_sphere_t * s)

◆ graphene_sphere_translate()

GRAPHENE_AVAILABLE_IN_1_2 void graphene_sphere_translate ( const graphene_sphere_t * s,
const graphene_point3d_t * point,
graphene_sphere_t * res )