UnityMol  1.0.25beta
ComputeFieldLines.cpp File Reference
#include <stdlib.h>
#include <math.h>

Classes

struct  Vector3
 
struct  Int3
 

Macros

#define MIN(a, b)   (((a)<(b))?(a):(b))
 
#define MAX(a, b)   (((a)>(b))?(a):(b))
 

Functions

void s2g (Vector3 pos3d, Vector3 dx, Vector3 origin, Int3 dim, Int3 &tofill)
 
void g2s (Int3 ijk, Vector3 dx, Vector3 origin, Int3 dim, Vector3 &tofill)
 
bool isInBox (Vector3 pos, Vector3 dx, Vector3 origin, Int3 dim)
 
float magnitude (Vector3 v)
 
void computeFieldLinesCPP (Vector3 *grad, Int3 gSize, Vector3 origin, Vector3 dx, int nbIter, float gradThreshold, float minL, float maxL, Int3 *seeds, int nbSeeds, float minGradMag, float maxGradMag, Vector3 *result)
 

Macro Definition Documentation

◆ MAX

#define MAX (   a,
 
)    (((a)>(b))?(a):(b))

◆ MIN

#define MIN (   a,
 
)    (((a)<(b))?(a):(b))

Function Documentation

◆ computeFieldLinesCPP()

void computeFieldLinesCPP ( Vector3 grad,
Int3  gSize,
Vector3  origin,
Vector3  dx,
int  nbIter,
float  gradThreshold,
float  minL,
float  maxL,
Int3 seeds,
int  nbSeeds,
float  minGradMag,
float  maxGradMag,
Vector3 result 
)

◆ g2s()

void g2s ( Int3  ijk,
Vector3  dx,
Vector3  origin,
Int3  dim,
Vector3 tofill 
)

◆ isInBox()

bool isInBox ( Vector3  pos,
Vector3  dx,
Vector3  origin,
Int3  dim 
)

◆ magnitude()

float magnitude ( Vector3  v)

◆ s2g()

void s2g ( Vector3  pos3d,
Vector3  dx,
Vector3  origin,
Int3  dim,
Int3 tofill 
)