libgravix2  0.1.0
A fast simulation of attractive forces acting on point-like particles embedded onto the surface of a sphere.
linalg.h File Reference

Helper functions for linear algebra calculations. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  GrvxVec3D
 3D vector in cartesian representation. More...
 

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...
 

Detailed Description

Helper functions for linear algebra calculations.

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: