YetAnotherCoupler 3.2.0_a
Loading...
Searching...
No Matches
Functions | Variables
check_overlap.c File Reference
#include <stdlib.h>
#include <math.h>
#include "utils_core.h"
#include "geometry.h"
#include "grid_cell.h"
Include dependency graph for check_overlap.c:

Go to the source code of this file.

Functions

static int edge_direction (double *a, double *b)
 
static int point_in_cell_generic (double point_coords[3], struct yac_grid_cell cell)
 
static int point_in_cell_unstruct_triangle (double point_coords[3], struct yac_grid_cell cell)
 
static double dotproduct (double a[], double b[])
 
static int point_in_cell_unstruct_quad (double point_coords[3], struct yac_grid_cell cell)
 
int yac_point_in_cell (double point_coords[3], struct yac_grid_cell cell)
 
int yac_point_in_cell2 (double point_coords[3], struct yac_grid_cell cell, struct bounding_circle bnd_circle)
 

Variables

static double const tol = 1.0e-12
 

Function Documentation

◆ dotproduct()

static double dotproduct ( double  a[],
double  b[] 
)
inlinestatic

Definition at line 333 of file check_overlap.c.

Here is the caller graph for this function:

◆ edge_direction()

static int edge_direction ( double *  a,
double *  b 
)
inlinestatic

Definition at line 17 of file check_overlap.c.

Here is the caller graph for this function:

◆ point_in_cell_generic()

static int point_in_cell_generic ( double  point_coords[3],
struct yac_grid_cell  cell 
)
static

Definition at line 24 of file check_overlap.c.

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

◆ point_in_cell_unstruct_quad()

static int point_in_cell_unstruct_quad ( double  point_coords[3],
struct yac_grid_cell  cell 
)
static

Definition at line 337 of file check_overlap.c.

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

◆ point_in_cell_unstruct_triangle()

static int point_in_cell_unstruct_triangle ( double  point_coords[3],
struct yac_grid_cell  cell 
)
static

Definition at line 112 of file check_overlap.c.

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

◆ yac_point_in_cell()

int yac_point_in_cell ( double  point_coords[3],
struct yac_grid_cell  cell 
)

checks whether a given point is within a given cell

Parameters
[in]point_coords
[in]cell
Returns
0 if the point is not in the cell
Examples
test_interp_grid_parallel.c, and test_point_in_cell.c.

Definition at line 465 of file check_overlap.c.

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

◆ yac_point_in_cell2()

int yac_point_in_cell2 ( double  point_coords[3],
struct yac_grid_cell  cell,
struct bounding_circle  bnd_circle 
)

checks whether a given point is within a given cell

Parameters
[in]point_coords
[in]cell
[in]bnd_circle
Returns
0 if the point is not in the cell
Examples
test_point_in_cell.c.

Definition at line 474 of file check_overlap.c.

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

Variable Documentation

◆ tol

double const tol = 1.0e-12
static