LiteFX 0.5.1.2025
Computer Graphics Engine
Loading...
Searching...
No Matches
LiteFX::Math::RectI Class Reference

#include <math.hpp>

Inherits LiteFX::Math::Vector< Int32, 4 >.

Public Member Functions

 RectI () noexcept
 RectI (const Vector< Int32, 2 > &pos, Int32 w, Int32 h) noexcept
 RectI (Int32 x, Int32 y, Int32 w, Int32 h) noexcept
 RectI (const RectI &)
 RectI (RectI &&) noexcept
 ~RectI () noexcept=default
RectIoperator= (const RectI &_other)
RectIoperator= (RectI &&_other) noexcept
Vector< Int32, 2 > position () const noexcept
Size2d extent () const noexcept
Int32 width () const noexcept
Int32width () noexcept
Int32 height () const noexcept
Int32height () noexcept
Public Member Functions inherited from LiteFX::Math::Vector< Int32, 4 >
constexpr Vector () noexcept=default
 Initializes an empty vector.
constexpr Vectoroperator= (Vector &&_other) noexcept=default
 Moves the elements of the other vector to the current vector.
constexpr ~Vector () noexcept=default
 Destroys the vector.
constexpr Int32 operator[] (unsigned int i) const noexcept
 Returns a value from the vector, indexed by the parameter i .
constexpr auto begin () noexcept
 Returns an interator for that addresses the begin of the vector elements.
constexpr auto end () noexcept
 Returns an interator for that addresses the end of the vector elements.
constexpr auto cbegin () const noexcept
 Returns a constant interator for that addresses the begin of the vector elements.
constexpr auto cend () const noexcept
 Returns a constant interator for that addresses the end of the vector elements.
constexpr const scalar_typeelements () const noexcept
 Returns a pointer to the elements of the vector.
constexpr operator std::array< Int32, DIM > () const noexcept
 Converts the vector to an instance of std::array.
constexpr operator std::vector< Int32 > () const
 Converts the vector into an instance of type std::vector.
constexpr int size () const noexcept
 Returns the number of dimensions of the vector.
constexpr scalar_type x () const noexcept
 Returns the value of the x component of the vector.
constexpr scalar_type y () const noexcept
 Returns the value of the y component of the vector.
constexpr scalar_type z () const noexcept
 Returns the value of the z component of the vector.
constexpr scalar_type w () const noexcept
 Returns the value of the w component of the vector.

Additional Inherited Members

Public Types inherited from LiteFX::Math::Vector< Int32, 4 >
using scalar_type
 The type of the vector elements.
using vec_type
 The type of the vector itself.
Static Public Attributes inherited from LiteFX::Math::Vector< Int32, 4 >
static constexpr size_t vec_size
 Stores the size of the vector.
Protected Types inherited from LiteFX::Math::Vector< Int32, 4 >
using array_type
Protected Attributes inherited from LiteFX::Math::Vector< Int32, 4 >
array_type m_elements

Constructor & Destructor Documentation

◆ RectI() [1/5]

RectI::RectI ( )
noexcept

◆ RectI() [2/5]

RectI::RectI ( const Vector< Int32, 2 > & pos,
Int32 w,
Int32 h )
noexcept

◆ RectI() [3/5]

RectI::RectI ( Int32 x,
Int32 y,
Int32 w,
Int32 h )
noexcept

◆ RectI() [4/5]

RectI::RectI ( const RectI & _other)

◆ RectI() [5/5]

RectI::RectI ( RectI && _other)
noexcept

◆ ~RectI()

LiteFX::Math::RectI::~RectI ( )
defaultnoexcept

Member Function Documentation

◆ extent()

Size2d RectI::extent ( ) const
noexcept

◆ height() [1/2]

Int32 RectI::height ( ) const
noexcept

◆ height() [2/2]

Int32 & RectI::height ( )
noexcept

◆ operator=() [1/2]

RectI & LiteFX::Math::RectI::operator= ( const RectI & _other)

◆ operator=() [2/2]

RectI & RectI::operator= ( RectI && _other)
noexcept

◆ position()

Vector< Int32, 2 > RectI::position ( ) const
noexcept

◆ width() [1/2]

Int32 RectI::width ( ) const
noexcept

◆ width() [2/2]

Int32 & RectI::width ( )
noexcept