libgravix2  0.1.0
A fast simulation of attractive forces acting on point-like particles embedded onto the surface of a sphere.
linalg.c File Reference
#include "libgravix2/linalg.h"
#include <math.h>
Include dependency graph for linalg.c:

Functions

double grvx_dot (struct GrvxVec3D a, struct GrvxVec3D b)
 Dot product of a and b. More...
 
double grvx_mag (struct GrvxVec3D v)
 Magnitude of vector. More...
 

Function Documentation

◆ grvx_dot()

double grvx_dot ( struct GrvxVec3D  a,
struct GrvxVec3D  b 
)

Dot product of a and b.

Parameters
aFirst vector.
bSecond vector.
Returns
Dot product of first and second vector.
Here is the caller graph for this function:

◆ grvx_mag()

double grvx_mag ( struct GrvxVec3D  v)

Magnitude of vector.

Parameters
vVector.
Returns
Magnitude of vector.
Here is the caller graph for this function: