35 #ifndef IECORE_RANDOM_H
36 #define IECORE_RANDOM_H
38 #include "OpenEXR/ImathRandom.h"
44 template<
class Vec,
class Rand>
48 template<
class Vec,
class Rand>
49 Vec
triangleRand(
const Vec &v0,
const Vec &v1,
const Vec &v2, Rand &rand );
53 template<
class Vec,
class Rand>
58 #include "IECore/Random.inl"
60 #endif // IECORE_RANDOM_H
Vec cosineHemisphereRand(Rand &rand)
Vec triangleRand(const Vec &v0, const Vec &v1, const Vec &v2, Rand &rand)
Returns a random point within the specified triangle.
Vec barycentricRand(Rand &rand)
Returns a random barycentric coordinate.
This namespace contains all components of the core library.
Definition: AddSmoothSkinningInfluencesOp.h:43