Frustum.hh
Go to the documentation of this file.
44 FRUSTUM_PLANE_NEAR = 0,
47 FRUSTUM_PLANE_FAR = 1,
50 FRUSTUM_PLANE_LEFT = 2,
53 FRUSTUM_PLANE_RIGHT = 3,
56 FRUSTUM_PLANE_TOP = 4,
60 };
The Angle class is used to simplify and clarify the use of radians and degrees measurements....
Definition: Angle.hh:62
Mathematical representation of a box that is aligned along an X,Y,Z axis.
Definition: AxisAlignedBox.hh:43
Mathematical representation of a frustum and related functions. This is also known as a view frustum.
Definition: Frustum.hh:39
Frustum(const double _near, const double _far, const math::Angle &_fov, const double _aspectRatio, const math::Pose3d &_pose=math::Pose3d::Zero)
Constructor.
Planed Plane(const FrustumPlane _plane) const
Get a plane of the frustum.
double AspectRatio() const
Get the aspect ratio, which is the width divided by height of the near or far planes.
double Near() const
Get the near distance. This is the distance from the frustum's vertex to the closest plane.
void SetNear(const double _near)
Set the near distance. This is the distance from the frustum's vertex to the closest plane.
void SetAspectRatio(const double _aspectRatio)
Set the aspect ratio, which is the width divided by height of the near or far planes.
void SetFar(const double _far)
Set the far distance. This is the distance from the frustum's vertex to the farthest plane.
bool Contains(const Vector3d &_p) const
Check if a point lies inside the pyramid frustum.
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...
double Far() const
Get the far distance. This is the distance from the frustum's vertex to the farthest plane.
FrustumPlane
Planes that define the boundaries of the frustum.
Definition: Frustum.hh:42
bool Contains(const AxisAlignedBox &_b) const
Check if a box lies inside the pyramid frustum.
math::Angle FOV() const
Get the horizontal field of view. The field of view is the angle between the frustum's vertex and the...
Frustum & operator=(const Frustum &_f)
Assignment operator. Set this frustum to the parameter.
static const Pose3< T > Zero
math::Pose3<T>(0, 0, 0, 0, 0, 0)
Definition: Pose3.hh:37
The Vector3 class represents the generic vector containing 3 elements. Since it's commonly used to ke...
Definition: Vector3.hh:42
Definition: Angle.hh:43