gz/math/Frustum.hh
Go to the documentation of this file.
@ FRUSTUM_PLANE_FAR
Far plane.
Definition: gz/math/Frustum.hh:47
Encapsulates a position and rotation in three space.
Definition: gz/math/Pose3.hh:34
Definition: gz/math/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.
@ FRUSTUM_PLANE_LEFT
Left plane.
Definition: gz/math/Frustum.hh:50
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: gz/math/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: gz/math/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: gz/math/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: gz/math/Angle.hh:61
@ FRUSTUM_PLANE_TOP
Top plane.
Definition: gz/math/Frustum.hh:56
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: gz/math/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: gz/math/AxisAlignedBox.hh:42
@ FRUSTUM_PLANE_BOTTOM
Bottom plane.
Definition: gz/math/Frustum.hh:59
static const Pose3< T > Zero
math::Pose3<T>(0, 0, 0, 0, 0, 0)
Definition: gz/math/Pose3.hh:37
@ FRUSTUM_PLANE_NEAR
Near plane.
Definition: gz/math/Frustum.hh:44
double Near() const
Get the near distance. This is the distance from the frustum's vertex to the closest plane.