YetAnotherCoupler 3.5.2
|
Set of functions to calculate a bounding circle around a certain set of points. More...
#include "config.h"
#include <math.h>
#include <stdlib.h>
#include <string.h>
#include <float.h>
#include "geometry.h"
#include "utils_core.h"
#include "basic_grid.h"
#include "ensure_array_size.h"
Go to the source code of this file.
Functions | |
void | yac_get_cell_circumscribe_circle_reg_quad (double a[3], double b[3], double c[3], struct bounding_circle *bnd_circle) |
void | yac_get_cell_bounding_circle_reg_quad (double a[3], double b[3], double c[3], struct bounding_circle *bnd_circle) |
void | yac_get_cell_circumscribe_circle_unstruct_triangle (double a[3], double b[3], double c[3], struct bounding_circle *bnd_circle) |
static double | get_sin_vector_angle (double a[3], double b[3]) |
void | yac_get_cell_bounding_circle_unstruct_triangle (double a[3], double b[3], double c[3], struct bounding_circle *bnd_circle) |
static struct sin_cos_angle | compute_edge_inc_angle (double *restrict a, double *restrict b, double *restrict middle_point) |
void | yac_get_cell_bounding_circle (struct yac_grid_cell cell, struct bounding_circle *bnd_circle) |
int | yac_extents_overlap (struct bounding_circle *extent_a, struct bounding_circle *extent_b) |
Set of functions to calculate a bounding circle around a certain set of points.
Definition in file bnd_circle.c.
|
inlinestatic |
Definition at line 148 of file bnd_circle.c.
|
inlinestatic |
Definition at line 80 of file bnd_circle.c.
int yac_extents_overlap | ( | struct bounding_circle * | extent_a, |
struct bounding_circle * | extent_b ) |
checks whether two extents overlap
[in] | extent_a | bounding circle |
[in] | extent_b | bounding circle |
Definition at line 204 of file bnd_circle.c.
void yac_get_cell_bounding_circle | ( | struct yac_grid_cell | cell, |
struct bounding_circle * | bnd_circle ) |
gets the bounding circle for a grid cell
[in] | cell | grid cell (coordinates have to be in radian) |
[out] | bnd_circle | bounding circle of the grid cell |
Definition at line 160 of file bnd_circle.c.
void yac_get_cell_bounding_circle_reg_quad | ( | double | a[3], |
double | b[3], | ||
double | c[3], | ||
struct bounding_circle * | bnd_circle ) |
computes the smallest bounding circle for a triangle on the sphere
[in] | a | coordinates of first point (xyz) |
[in] | b | coordinates of second point (xyz) |
[in] | c | coordinates of thrid point (xyz) |
[out] | bnd_circle | bounding circle |
Definition at line 36 of file bnd_circle.c.
void yac_get_cell_bounding_circle_unstruct_triangle | ( | double | a[3], |
double | b[3], | ||
double | c[3], | ||
struct bounding_circle * | bnd_circle ) |
computes the smallest bounding circle for a triangle on the sphere
[in] | a | coordinates of first point (xyz) |
[in] | b | coordinates of second point (xyz) |
[in] | c | coordinates of thrid point (xyz) |
[out] | bnd_circle | bounding circle |
Definition at line 93 of file bnd_circle.c.
void yac_get_cell_circumscribe_circle_reg_quad | ( | double | a[3], |
double | b[3], | ||
double | c[3], | ||
struct bounding_circle * | bnd_circle ) |
computes the circumscribe circle for a quad on the sphere
[in] | a | coordinates of first point (xyz) |
[in] | b | coordinates of second point (xyz) |
[in] | c | coordinates of thrid point (xyz) |
[out] | bnd_circle | circumscribe circle |
Definition at line 27 of file bnd_circle.c.
void yac_get_cell_circumscribe_circle_unstruct_triangle | ( | double | a[3], |
double | b[3], | ||
double | c[3], | ||
struct bounding_circle * | bnd_circle ) |
computes the circumscribe circle for a triangle on the sphere
[in] | a | coordinates of first point (xyz) |
[in] | b | coordinates of second point (xyz) |
[in] | c | coordinates of thrid point (xyz) |
[out] | bnd_circle | circumscribe circle |
Definition at line 45 of file bnd_circle.c.