Lagrange
Frustum Class Reference

Frustum defined using 6 planes. More...

#include <lagrange/ui/types/Frustum.h>

Public Types

using Plane = Eigen::Hyperplane< float, 3 >
 

Public Member Functions

Frustum transformed (const Eigen::Affine3f &T) const
 
bool intersects (const Eigen::AlignedBox3f &bb, bool &fully_inside) const
 
bool intersects (const Eigen::Vector3f &a, const Eigen::Vector3f &b, const Eigen::Vector3f &c) const
 
bool is_backfacing (const Eigen::Vector3f &a, const Eigen::Vector3f &b, const Eigen::Vector3f &c) const
 
bool intersects (const Eigen::Vector3f &a, const Eigen::Vector3f &b) const
 
Eigen::Vector3f get_edge (FrustumVertices a, FrustumVertices b) const
 
Eigen::Vector3f get_normalized_edge (FrustumVertices a, FrustumVertices b) const
 
bool contains (const Eigen::Vector3f &a) const
 

Public Attributes

std::array< Eigen::Vector3f, 8 > vertices
 
std::array< Plane, 6 > planes
 

Detailed Description

Frustum defined using 6 planes.


The documentation for this class was generated from the following files: