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

#include <mv/math/graphics/Project.hpp>

Public Member Functions

T X () const noexcept
 
T Y () const noexcept
 
T Width () const noexcept
 
T Height () const noexcept
 
T MinimumDepth () const noexcept
 
T MaximumDepth () const noexcept
 

Static Public Member Functions

static std::optional< Viewport > TryFrom (T x, T y, T width, T height, T minimumDepth=T(0), T maximumDepth=T(1)) noexcept
 

Detailed Description

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

Definition at line 22 of file Project.hpp.

Member Function Documentation

◆ Height()

template<typename T >
T mv::math::Viewport< T >::Height ( ) const
inlinenoexcept

Definition at line 57 of file Project.hpp.

◆ MaximumDepth()

template<typename T >
T mv::math::Viewport< T >::MaximumDepth ( ) const
inlinenoexcept

Definition at line 65 of file Project.hpp.

◆ MinimumDepth()

template<typename T >
T mv::math::Viewport< T >::MinimumDepth ( ) const
inlinenoexcept

Definition at line 61 of file Project.hpp.

◆ TryFrom()

template<typename T >
static std::optional< Viewport > mv::math::Viewport< T >::TryFrom ( T  x,
T  y,
T  width,
T  height,
T  minimumDepth = T(0),
T  maximumDepth = T(1) 
)
inlinestaticnoexcept

Definition at line 25 of file Project.hpp.

◆ Width()

template<typename T >
T mv::math::Viewport< T >::Width ( ) const
inlinenoexcept

Definition at line 53 of file Project.hpp.

◆ X()

template<typename T >
T mv::math::Viewport< T >::X ( ) const
inlinenoexcept

Definition at line 45 of file Project.hpp.

◆ Y()

template<typename T >
T mv::math::Viewport< T >::Y ( ) const
inlinenoexcept

Definition at line 49 of file Project.hpp.


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