Frustum.hh
Go to the documentation of this file.
Definition: AdditivelySeparableScalarField3.hh:27
double AspectRatio() const
Get the aspect ratio, which is the width divided by height of the near or far planes.
double Far() const
Get the far distance. This is the distance from the frustum's vertex to the farthest plane.
bool Contains(const AxisAlignedBox &_b) const
Check if a box lies inside the pyramid frustum.
void SetNear(const double _near)
Set the near distance. This is the distance from the frustum's vertex to the closest plane.
Mathematical representation of a frustum and related functions. This is also known as a view frustum.
Definition: Frustum.hh:38
void SetFar(const double _far)
Set the far distance. This is the distance from the frustum's vertex to the farthest plane.
@ FRUSTUM_PLANE_RIGHT
Right plane.
Definition: Frustum.hh:53
math::Angle FOV() const
Get the horizontal field of view. The field of view is the angle between the frustum's vertex and the...
The Vector3 class represents the generic vector containing 3 elements. Since it's commonly used to ke...
Definition: Vector3.hh:41
Frustum & operator=(const Frustum &_f)
Assignment operator. Set this frustum to the parameter.
void SetAspectRatio(const double _aspectRatio)
Set the aspect ratio, which is the width divided by height of the near or far planes.
The Angle class is used to simplify and clarify the use of radians and degrees measurements....
Definition: Angle.hh:61
void SetFOV(const math::Angle &_fov)
Set the horizontal field of view. The field of view is the angle between the frustum's vertex and the...
FrustumPlane
Planes that define the boundaries of the frustum.
Definition: Frustum.hh:41
Planed Plane(const FrustumPlane _plane) const
Get a plane of the frustum.
Mathematical representation of a box that is aligned along an X,Y,Z axis.
Definition: AxisAlignedBox.hh:42
@ FRUSTUM_PLANE_BOTTOM
Bottom plane.
Definition: Frustum.hh:59
static const Pose3< T > Zero
math::Pose3<T>(0, 0, 0, 0, 0, 0)
Definition: Pose3.hh:37
double Near() const
Get the near distance. This is the distance from the frustum's vertex to the closest plane.