YetAnotherCoupler 3.2.0_a
Loading...
Searching...
No Matches
Functions
bnd_triangle.c File Reference
#include "config.h"
#include <math.h>
#include <string.h>
#include "utils_core.h"
#include "geometry.h"
#include "yac_lapack_interface.h"
Include dependency graph for bnd_triangle.c:

Go to the source code of this file.

Functions

static void compute_middle_point (double(*restrict vertices)[3], size_t num_vertices, double *restrict middle_point)
 
static double * find_furthest_vertex (double(*restrict vertices)[3], size_t num_vertices, double *restrict middle_point)
 
static void compute_triangle (double *a, double *x_middle, double *x_t, double(*x_triangle)[3])
 
void yac_compute_bnd_triangle (double *vertices, size_t num_vertices, double triangle[][3], size_t num_tests)
 

Function Documentation

◆ compute_middle_point()

static void compute_middle_point ( double(*)  vertices[3],
size_t  num_vertices,
double *restrict  middle_point 
)
inlinestatic

Definition at line 17 of file bnd_triangle.c.

Here is the caller graph for this function:

◆ compute_triangle()

static void compute_triangle ( double *  a,
double *  x_middle,
double *  x_t,
double(*)  x_triangle[3] 
)
static

Definition at line 75 of file bnd_triangle.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ find_furthest_vertex()

static double * find_furthest_vertex ( double(*)  vertices[3],
size_t  num_vertices,
double *restrict  middle_point 
)
inlinestatic

Definition at line 41 of file bnd_triangle.c.

Here is the caller graph for this function:

◆ yac_compute_bnd_triangle()

void yac_compute_bnd_triangle ( double *  vertices,
size_t  num_vertices,
double  triangle[][3],
size_t  num_tests 
)

computes a spherical triangle that contains all given vertices, the algorithm tries to minimise the size of the triangle

Parameters
[in]verticesvertices that are supposed to be within the triangle
[in]num_verticesnumber of vertices in vertices
[out]trianglebounding triangle
[in]num_testswith increasing number of tests computation time and chance of smaller bounding triangle increases
Remarks
num_tests has to be > 0

Definition at line 99 of file bnd_triangle.c.

Here is the call graph for this function:
Here is the caller graph for this function: