Move Vectormath main
C++20 game and graphics mathematics
Loading...
Searching...
No Matches
mv::math::Frustum3< T > Class Template Reference

#include <mv/math/culling/Frustum3.hpp>

Public Types

using Component = T
 

Public Member Functions

const Plane3< T > & Plane (FrustumPlane plane) const noexcept
 
bool IsActive (FrustumPlane plane) const noexcept
 
FrustumPlaneMask ActivePlanes () const noexcept
 

Static Public Member Functions

static std::optional< Frustum3 > TryFromPlanes (const std::array< Plane3< T >, 6 > &planes, FrustumPlaneMask activePlanes=FrustumPlaneMask::All) noexcept
 
static std::optional< Frustum3 > TryFromViewProjection (const Mat4< T > &viewProjection, ClipDepth clipDepth, DepthDirection depthDirection) noexcept
 

Detailed Description

template<typename T>
requires std::is_floating_point_v<T>
class mv::math::Frustum3< T >

Definition at line 116 of file Frustum3.hpp.

Member Typedef Documentation

◆ Component

template<typename T >
using mv::math::Frustum3< T >::Component = T

Definition at line 119 of file Frustum3.hpp.

Member Function Documentation

◆ ActivePlanes()

template<typename T >
FrustumPlaneMask mv::math::Frustum3< T >::ActivePlanes ( ) const
inlinenoexcept

Definition at line 205 of file Frustum3.hpp.

◆ IsActive()

template<typename T >
bool mv::math::Frustum3< T >::IsActive ( FrustumPlane  plane) const
inlinenoexcept

Definition at line 200 of file Frustum3.hpp.

◆ Plane()

template<typename T >
const Plane3< T > & mv::math::Frustum3< T >::Plane ( FrustumPlane  plane) const
inlinenoexcept

Definition at line 194 of file Frustum3.hpp.

◆ TryFromPlanes()

template<typename T >
static std::optional< Frustum3 > mv::math::Frustum3< T >::TryFromPlanes ( const std::array< Plane3< T >, 6 > &  planes,
FrustumPlaneMask  activePlanes = FrustumPlaneMask::All 
)
inlinestaticnoexcept

Definition at line 121 of file Frustum3.hpp.

◆ TryFromViewProjection()

template<typename T >
static std::optional< Frustum3 > mv::math::Frustum3< T >::TryFromViewProjection ( const Mat4< T > &  viewProjection,
ClipDepth  clipDepth,
DepthDirection  depthDirection 
)
inlinestaticnoexcept

Definition at line 136 of file Frustum3.hpp.


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