static float halfAngleFromSolidAngle(float solidAngle)
Definition: Cone.cpp:29
Vector3 direction
Definition: Cone.h:32
Cone(const Vector3 &tip, const Vector3 &direction, float angle)
Definition: Cone.cpp:38
An arbitrary (oriented) 3D box, useful as a bounding box.
Definition: Box.h:35
Vector3 randomDirectionInCone(Random &rng) const
Definition: Cone.cpp:47
float angle
Definition: Cone.h:35
Vector3 tip
Definition: Cone.h:31
bool intersects(const class Sphere &s) const
Definition: Cone.cpp:108
bool contains(const class Vector3 &v) const
Definition: Cone.cpp:124
virtual ~Cone()
Definition: Cone.h:50
static float solidAngleFromHalfAngle(float halfAngle)
Definition: Cone.cpp:21