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

#include <mv/math/geometry/Triangle3.hpp>

Public Types

using Component = T
 

Public Member Functions

 Triangle3 () noexcept=default
 
const Point3< T > & First () const noexcept
 
const Point3< T > & Second () const noexcept
 
const Point3< T > & Third () const noexcept
 
Vec3< T > Edge01 () const noexcept
 
Vec3< T > Edge02 () const noexcept
 
Vec3< T > Edge12 () const noexcept
 
Point3< T > Centroid () const noexcept
 
T DoubleArea () const noexcept
 
T Area () const noexcept
 
std::optional< Normal3< T > > TryNormal () const noexcept
 

Static Public Member Functions

static std::optional< Triangle3 > TryFromPoints (const Point3< T > &first, const Point3< T > &second, const Point3< T > &third) noexcept
 

Detailed Description

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

Definition at line 16 of file Triangle3.hpp.

Member Typedef Documentation

◆ Component

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

Definition at line 19 of file Triangle3.hpp.

Constructor & Destructor Documentation

◆ Triangle3()

template<typename T >
mv::math::Triangle3< T >::Triangle3 ( )
defaultnoexcept

Member Function Documentation

◆ Area()

template<typename T >
T mv::math::Triangle3< T >::Area ( ) const
inlinenoexcept

Definition at line 78 of file Triangle3.hpp.

◆ Centroid()

template<typename T >
Point3< T > mv::math::Triangle3< T >::Centroid ( ) const
inlinenoexcept

Definition at line 66 of file Triangle3.hpp.

◆ DoubleArea()

template<typename T >
T mv::math::Triangle3< T >::DoubleArea ( ) const
inlinenoexcept

Definition at line 73 of file Triangle3.hpp.

◆ Edge01()

template<typename T >
Vec3< T > mv::math::Triangle3< T >::Edge01 ( ) const
inlinenoexcept

Definition at line 51 of file Triangle3.hpp.

◆ Edge02()

template<typename T >
Vec3< T > mv::math::Triangle3< T >::Edge02 ( ) const
inlinenoexcept

Definition at line 56 of file Triangle3.hpp.

◆ Edge12()

template<typename T >
Vec3< T > mv::math::Triangle3< T >::Edge12 ( ) const
inlinenoexcept

Definition at line 61 of file Triangle3.hpp.

◆ First()

template<typename T >
const Point3< T > & mv::math::Triangle3< T >::First ( ) const
inlinenoexcept

Definition at line 36 of file Triangle3.hpp.

◆ Second()

template<typename T >
const Point3< T > & mv::math::Triangle3< T >::Second ( ) const
inlinenoexcept

Definition at line 41 of file Triangle3.hpp.

◆ Third()

template<typename T >
const Point3< T > & mv::math::Triangle3< T >::Third ( ) const
inlinenoexcept

Definition at line 46 of file Triangle3.hpp.

◆ TryFromPoints()

template<typename T >
static std::optional< Triangle3 > mv::math::Triangle3< T >::TryFromPoints ( const Point3< T > &  first,
const Point3< T > &  second,
const Point3< T > &  third 
)
inlinestaticnoexcept

Definition at line 23 of file Triangle3.hpp.

◆ TryNormal()

template<typename T >
std::optional< Normal3< T > > mv::math::Triangle3< T >::TryNormal ( ) const
inlinenoexcept

Definition at line 83 of file Triangle3.hpp.


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