Basilisk CFD
Adaptive Cartesian mesh PDE framework
Loading...
Searching...
No Matches
distance_point_ellipse.h File Reference

Go to the source code of this file.

Functions

static double RobustLength (double v0, double v1)
 
static double GetRoot (double r0, double z0, double z1, double g)
 
double DistancePointEllipse (double e0, double e1, double y0, double y1, double *x0, double *x1)
 

Function Documentation

◆ DistancePointEllipse()

double DistancePointEllipse ( double  e0,
double  e1,
double  y0,
double  y1,
double x0,
double x1 
)

Definition at line 33 of file distance_point_ellipse.h.

References distance(), g, GetRoot(), sign(), sq(), x, and y1.

Here is the call graph for this function:

◆ GetRoot()

static double GetRoot ( double  r0,
double  z0,
double  z1,
double  g 
)
static

Definition at line 16 of file distance_point_ellipse.h.

References g, i, RobustLength(), s, sq(), and x.

Referenced by DistancePointEllipse().

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

◆ RobustLength()

static double RobustLength ( double  v0,
double  v1 
)
static

Distance from a point to an ellipse

See section 2.9 of DistancePointEllipseEllipsoid.pdf.

Definition at line 9 of file distance_point_ellipse.h.

References sq(), and x.

Referenced by GetRoot().

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