Lagrange
AABB Class Reference

Inherits AlignedBox3f.

Public Types

using Super = Eigen::AlignedBox3f
 

Public Member Functions

 AABB (Eigen::AlignedBox3f box)
 
template<typename Derived >
Eigen::Vector3f normalize_point (const Eigen::MatrixBase< Derived > &pt) const
 Normalizes point to [0.0f,1.0f]^3 in AABB's bounds.
 
template<typename Scalar >
Eigen::Vector3f normalize_point (const Eigen::Matrix< Scalar, 2, 1 > &pt) const
 Overload for 2D mesh.
 
Eigen::Affine3f get_cube_transform () const
 
Eigen::Affine3f get_normalization_transform (bool preserve_aspect=true) const
 
AABB transformed (const Eigen::Affine3f &transform) const
 
bool intersects_ray (Eigen::Vector3f origin, Eigen::Vector3f dir, float *tmin_out=nullptr, float *tmax_out=nullptr) const
 
bool intersects_frustum (const Frustum &f) const
 

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