Classes |
class | NoriException |
| Simple exception class, which stores a human-readable error description. More...
|
Defines |
#define | EIGEN_NO_DEBUG |
#define | NORI_NAMESPACE_BEGIN namespace nori { |
#define | NORI_NAMESPACE_END } |
#define | Epsilon 1e-4f |
#define | INV_PI 0.31830988618379067154f |
#define | INV_TWOPI 0.15915494309189533577f |
#define | INV_FOURPI 0.07957747154594766788f |
#define | SQRT_TWO 1.41421356237309504880f |
#define | INV_SQRT_TWO 0.70710678118654752440f |
#define | EXPECT_TAKEN(a) a |
#define | EXPECT_NOT_TAKEN(a) a |
Typedefs |
typedef TVector< float, 1 > | Vector1f |
typedef TVector< float, 2 > | Vector2f |
typedef TVector< float, 3 > | Vector3f |
typedef TVector< float, 4 > | Vector4f |
typedef TVector< double, 1 > | Vector1d |
typedef TVector< double, 2 > | Vector2d |
typedef TVector< double, 3 > | Vector3d |
typedef TVector< double, 4 > | Vector4d |
typedef TVector< int, 1 > | Vector1i |
typedef TVector< int, 2 > | Vector2i |
typedef TVector< int, 3 > | Vector3i |
typedef TVector< int, 4 > | Vector4i |
typedef TPoint< float, 1 > | Point1f |
typedef TPoint< float, 2 > | Point2f |
typedef TPoint< float, 3 > | Point3f |
typedef TPoint< float, 4 > | Point4f |
typedef TPoint< double, 1 > | Point1d |
typedef TPoint< double, 2 > | Point2d |
typedef TPoint< double, 3 > | Point3d |
typedef TPoint< double, 4 > | Point4d |
typedef TPoint< int, 1 > | Point1i |
typedef TPoint< int, 2 > | Point2i |
typedef TPoint< int, 3 > | Point3i |
typedef TPoint< int, 4 > | Point4i |
typedef TBoundingBox< Point1f > | BoundingBox1f |
typedef TBoundingBox< Point2f > | BoundingBox2f |
typedef TBoundingBox< Point3f > | BoundingBox3f |
typedef TBoundingBox< Point4f > | BoundingBox4f |
typedef TBoundingBox< Point1d > | BoundingBox1d |
typedef TBoundingBox< Point2d > | BoundingBox2d |
typedef TBoundingBox< Point3d > | BoundingBox3d |
typedef TBoundingBox< Point4d > | BoundingBox4d |
typedef TBoundingBox< Point1i > | BoundingBox1i |
typedef TBoundingBox< Point2i > | BoundingBox2i |
typedef TBoundingBox< Point3i > | BoundingBox3i |
typedef TBoundingBox< Point4i > | BoundingBox4i |
typedef TRay< Point2f, Vector2f > | Ray2f |
typedef TRay< Point3f, Vector3f > | Ray3f |
Enumerations |
enum | EMeasure { EUnknownMeasure = 0,
ESolidAngle,
EDiscrete
} |
| Measures associated with probability distributions.
More...
|
Functions |
void | sincosf (float theta, float *_sin, float *_cos) |
| Emulate sincosf using sinf() and cosf()
|
float | radToDeg (float value) |
float | degToRad (float value) |
| Convert degrees to radians.
|
float | clamp (float value, float min, float max) |
| Simple floating point clamping function.
|
int | clamp (int value, int min, int max) |
| Simple integer clamping function.
|
float | lerp (float t, float v1, float v2) |
| Linearly interpolate between two values.
|
Vector3f | squareToUniformSphere (const Point2f &sample) |
| Uniformly sample a vector on the unit sphere with respect to solid angles.
|
Vector3f | squareToUniformHemisphere (const Point2f &sample) |
| Uniformly sample a vector on the unit hemisphere with respect to solid angles.
|
Vector3f | squareToCosineHemisphere (const Point2f &sample) |
| Uniformly sample a vector on the unit hemisphere with respect to projected solid angles.
|
Point2f | squareToUniformDisk (const Point2f &sample) |
| Uniformly sample a vector on a 2D disk.
|
Point2f | squareToUniformDiskConcentric (const Point2f &sample) |
| Low-distortion concentric square to disk mapping by Peter Shirley (PDF: 1/PI)
|
Point2f | squareToUniformTriangle (const Point2f &sample) |
| Convert an uniformly distributed square sample into barycentric coordinates.
|
Vector3f | sphericalDirection (float theta, float phi) |
| Compute a direction for the given coordinates in spherical coordinates.
|
Point2f | sphericalCoordinates (const Vector3f &dir) |
| Compute a direction for the given coordinates in spherical coordinates.
|
QString | indent (const QString &string, int amount=2) |
| Indent a complete string (except for the first line) by the requested number of spaces.
|
void * | allocAligned (size_t size) |
| Allocate an aligned region of memory.
|
void | freeAligned (void *ptr) |
| Free an aligned region of memory.
|
int | getCoreCount () |
| Return the number of cores (real and virtual)
|