25#ifndef _WRAPS_C_TFC_UTIL_H_
26#define _WRAPS_C_TFC_UTIL_H_
34 unsigned int SolidSphere;
36 unsigned int SolidCube;
90CAPI_FUNC(HRESULT)
tfPlaneEquationFPN(tfFloatP_t *point, tfFloatP_t *normal, tfFloatP_t **planeEq);
116CAPI_FUNC(HRESULT)
tfRandomPoint(
unsigned int kind, tfFloatP_t dr, tfFloatP_t phi0, tfFloatP_t phi1, tfFloatP_t *x, tfFloatP_t *y, tfFloatP_t *z);
131CAPI_FUNC(HRESULT)
tfRandomPoints(
unsigned int kind,
int n, tfFloatP_t dr, tfFloatP_t phi0, tfFloatP_t phi1, tfFloatP_t **x);
143CAPI_FUNC(HRESULT)
tfPoints(
unsigned int kind,
int n, tfFloatP_t **x);
159 unsigned int nParticlesX,
160 unsigned int nParticlesY,
161 unsigned int nParticlesZ,
174CAPI_FUNC(HRESULT)
tfFilledCubeRandom(tfFloatP_t *corner1, tfFloatP_t *corner2,
int nParticles, tfFloatP_t **x);
189 unsigned int subdivisions,
193 unsigned int *numVerts,
195 unsigned int *numInds
210CAPI_FUNC(HRESULT)
tfRandomVector(tfFloatP_t mean, tfFloatP_t std, tfFloatP_t *x, tfFloatP_t *y, tfFloatP_t *z);
HRESULT tfUtilCPUTime(double *cputime)
Get the current CPU time.
HRESULT tfPlaneEquationFPN(tfFloatP_t *point, tfFloatP_t *normal, tfFloatP_t **planeEq)
Calculate the coefficients of a plane equation from a point and normal of the plane.
HRESULT tfFilledCubeRandom(tfFloatP_t *corner1, tfFloatP_t *corner2, int nParticles, tfFloatP_t **x)
Get the coordinates of a randomly filled cube.
HRESULT tfFilledCubeUniform(tfFloatP_t *corner1, tfFloatP_t *corner2, unsigned int nParticlesX, unsigned int nParticlesY, unsigned int nParticlesZ, tfFloatP_t **x)
Get the coordinates of a uniformly filled cube.
HRESULT tfRandomPoint(unsigned int kind, tfFloatP_t dr, tfFloatP_t phi0, tfFloatP_t phi1, tfFloatP_t *x, tfFloatP_t *y, tfFloatP_t *z)
Get the coordinates of a random point in a kind of shape.
HRESULT tfPointsType_init(struct tfPointsTypeHandle *handle)
Initialize an instance.
HRESULT tfPoints(unsigned int kind, int n, tfFloatP_t **x)
Get the coordinates of uniform points in a kind of shape.
HRESULT tfGetSeed(unsigned int *seed)
Get the current seed for the pseudo-random number generator.
HRESULT tfColor3Names(char ***names, unsigned int *numNames)
Get the names of all available colors.
HRESULT tfSetSeed(unsigned int seed)
Set the current seed for the pseudo-random number generator.
HRESULT tfPlaneEquationTPN(tfFloatP_t *planeEq, tfFloatP_t **point, tfFloatP_t **normal)
Calculate a point and normal of a plane equation.
HRESULT tfRandomVector(tfFloatP_t mean, tfFloatP_t std, tfFloatP_t *x, tfFloatP_t *y, tfFloatP_t *z)
Generates a randomly oriented vector with random magnitude with given mean and standard deviation acc...
HRESULT tfUtilWallTime(double *wtime)
Get the current wall time.
HRESULT tfRandomUnitVector(tfFloatP_t *x, tfFloatP_t *y, tfFloatP_t *z)
Generates a randomly oriented unit vector.
HRESULT tfRandomPoints(unsigned int kind, int n, tfFloatP_t dr, tfFloatP_t phi0, tfFloatP_t phi1, tfFloatP_t **x)
Get the coordinates of random points in a kind of shape.
HRESULT tfIcosphere(unsigned int subdivisions, tfFloatP_t phi0, tfFloatP_t phi1, tfFloatP_t **verts, unsigned int *numVerts, int **inds, unsigned int *numInds)
Get the coordinates of an icosphere.
HRESULT tfUtilGetFeaturesMap(char ***names, bool **flags, unsigned int *numFeatures)
Get the compiler features names and flags.