ParticleAPI 3.0.0
Performant particle system API in C++ for interactive graphics
Classes | Namespaces | Macros | Functions | Variables
pVec.h File Reference
#include <cmath>
#include <iostream>

Go to the source code of this file.

Classes

class  pVec
 A single-precision floating point three-vector. More...
 

Namespaces

namespace  PAPI
 PAPIClasses.h.
 

Macros

#define M_PI   3.1415926535897932384626433f
 PVec.h - yet another 3D vector class. More...
 
#define PINLINE   inline
 

Functions

float fsqr (float f)
 
float pRandf ()
 
void pSRandf (int x)
 
bool pSameSign (const float &a, const float &b)
 
float pNRandf (float sigma=1.0f)
 Return a random number with a normal distribution. More...
 
pVec pRandVec ()
 
pVec pNRandVec (float sigma)
 

Variables

const float P_SQRT2PI = 2.506628274631000502415765284811045253006f
 
const float P_ONEOVERSQRT2PI = (1.f / P_SQRT2PI)
 
const float P_ONEOVER_RAND_MAX = (1.0f / ((float)RAND_MAX))
 

Macro Definition Documentation

◆ M_PI

#define M_PI   3.1415926535897932384626433f

PVec.h - yet another 3D vector class.

Copyright 1997-2007, 2022 by David K. McAllister

A simple 3D float vector class for internal use by the particle systems.

◆ PINLINE

#define PINLINE   inline