neoGFX
Cross-platform C++ app/game engine
Loading...
Searching...
No Matches
neogfx::basic_delta< CoordinateType > Class Template Reference

#include <geometrical.hpp>

Public Types

typedef self_type abstract_type
 
typedef CoordinateType coordinate_type
 

Public Member Functions

constexpr basic_delta ()
 
constexpr basic_delta (coordinate_type dx, coordinate_type dy, coordinate_type dz={})
 
constexpr basic_delta (coordinate_type aSquareDelta)
 
template<typename CoordinateType2 >
constexpr basic_delta (const basic_delta< CoordinateType2 > &other)
 
basic_vector< coordinate_type, 2 > to_vec2 () const
 
basic_vector< coordinate_type, 3 > to_vec3 () const
 
auto operator<=> (const basic_delta &) const =default
 
basic_deltaoperator+= (coordinate_type s)
 
basic_deltaoperator-= (coordinate_type s)
 
basic_deltaoperator*= (coordinate_type s)
 
basic_deltaoperator/= (coordinate_type s)
 
basic_deltaoperator+= (const basic_delta &other)
 
basic_deltaoperator-= (const basic_delta &other)
 
basic_deltaoperator*= (const basic_delta &other)
 
basic_deltaoperator/= (const basic_delta &other)
 
basic_delta operator- () const
 
basic_delta abs () const
 
basic_delta ceil () const
 
basic_delta floor () const
 
basic_delta round () const
 
basic_delta min (const basic_delta &other) const
 
basic_delta max (const basic_delta &other) const
 
basic_delta with_dx (coordinate_type dx) const
 
basic_delta with_dy (coordinate_type dy) const
 
coordinate_type magnitude () const
 
template<typename T >
basic_delta< T > as () const
 

Public Attributes

coordinate_type dx
 
coordinate_type dy
 
coordinate_type dz
 

Detailed Description

template<typename CoordinateType>
class neogfx::basic_delta< CoordinateType >

Definition at line 107 of file geometrical.hpp.

Member Typedef Documentation

◆ abstract_type

template<typename CoordinateType >
typedef self_type neogfx::basic_delta< CoordinateType >::abstract_type

Definition at line 112 of file geometrical.hpp.

◆ coordinate_type

template<typename CoordinateType >
typedef CoordinateType neogfx::basic_delta< CoordinateType >::coordinate_type

Definition at line 113 of file geometrical.hpp.

Constructor & Destructor Documentation

◆ basic_delta() [1/4]

template<typename CoordinateType >
constexpr neogfx::basic_delta< CoordinateType >::basic_delta ( )
inlineconstexpr

Definition at line 116 of file geometrical.hpp.

◆ basic_delta() [2/4]

template<typename CoordinateType >
constexpr neogfx::basic_delta< CoordinateType >::basic_delta ( coordinate_type  dx,
coordinate_type  dy,
coordinate_type  dz = {} 
)
inlineconstexpr

Definition at line 117 of file geometrical.hpp.

◆ basic_delta() [3/4]

template<typename CoordinateType >
constexpr neogfx::basic_delta< CoordinateType >::basic_delta ( coordinate_type  aSquareDelta)
inlineexplicitconstexpr

Definition at line 118 of file geometrical.hpp.

◆ basic_delta() [4/4]

template<typename CoordinateType >
template<typename CoordinateType2 >
constexpr neogfx::basic_delta< CoordinateType >::basic_delta ( const basic_delta< CoordinateType2 > &  other)
inlineconstexpr

Definition at line 120 of file geometrical.hpp.

Member Function Documentation

◆ abs()

template<typename CoordinateType >
basic_delta neogfx::basic_delta< CoordinateType >::abs ( ) const
inline

Definition at line 136 of file geometrical.hpp.

◆ as()

template<typename CoordinateType >
template<typename T >
basic_delta< T > neogfx::basic_delta< CoordinateType >::as ( ) const
inline

Definition at line 147 of file geometrical.hpp.

◆ ceil()

template<typename CoordinateType >
basic_delta neogfx::basic_delta< CoordinateType >::ceil ( ) const
inline

Definition at line 137 of file geometrical.hpp.

◆ floor()

template<typename CoordinateType >
basic_delta neogfx::basic_delta< CoordinateType >::floor ( ) const
inline

Definition at line 138 of file geometrical.hpp.

◆ magnitude()

template<typename CoordinateType >
coordinate_type neogfx::basic_delta< CoordinateType >::magnitude ( ) const
inline

Definition at line 144 of file geometrical.hpp.

◆ max()

template<typename CoordinateType >
basic_delta neogfx::basic_delta< CoordinateType >::max ( const basic_delta< CoordinateType > &  other) const
inline

Definition at line 141 of file geometrical.hpp.

◆ min()

template<typename CoordinateType >
basic_delta neogfx::basic_delta< CoordinateType >::min ( const basic_delta< CoordinateType > &  other) const
inline

Definition at line 140 of file geometrical.hpp.

◆ operator*=() [1/2]

template<typename CoordinateType >
basic_delta & neogfx::basic_delta< CoordinateType >::operator*= ( const basic_delta< CoordinateType > &  other)
inline

Definition at line 133 of file geometrical.hpp.

◆ operator*=() [2/2]

template<typename CoordinateType >
basic_delta & neogfx::basic_delta< CoordinateType >::operator*= ( coordinate_type  s)
inline

Definition at line 129 of file geometrical.hpp.

◆ operator+=() [1/2]

template<typename CoordinateType >
basic_delta & neogfx::basic_delta< CoordinateType >::operator+= ( const basic_delta< CoordinateType > &  other)
inline

Definition at line 131 of file geometrical.hpp.

◆ operator+=() [2/2]

template<typename CoordinateType >
basic_delta & neogfx::basic_delta< CoordinateType >::operator+= ( coordinate_type  s)
inline

Definition at line 127 of file geometrical.hpp.

◆ operator-()

template<typename CoordinateType >
basic_delta neogfx::basic_delta< CoordinateType >::operator- ( ) const
inline

Definition at line 135 of file geometrical.hpp.

◆ operator-=() [1/2]

template<typename CoordinateType >
basic_delta & neogfx::basic_delta< CoordinateType >::operator-= ( const basic_delta< CoordinateType > &  other)
inline

Definition at line 132 of file geometrical.hpp.

◆ operator-=() [2/2]

template<typename CoordinateType >
basic_delta & neogfx::basic_delta< CoordinateType >::operator-= ( coordinate_type  s)
inline

Definition at line 128 of file geometrical.hpp.

◆ operator/=() [1/2]

template<typename CoordinateType >
basic_delta & neogfx::basic_delta< CoordinateType >::operator/= ( const basic_delta< CoordinateType > &  other)
inline

Definition at line 134 of file geometrical.hpp.

◆ operator/=() [2/2]

template<typename CoordinateType >
basic_delta & neogfx::basic_delta< CoordinateType >::operator/= ( coordinate_type  s)
inline

Definition at line 130 of file geometrical.hpp.

◆ operator<=>()

template<typename CoordinateType >
auto neogfx::basic_delta< CoordinateType >::operator<=> ( const basic_delta< CoordinateType > &  ) const
default

◆ round()

template<typename CoordinateType >
basic_delta neogfx::basic_delta< CoordinateType >::round ( ) const
inline

Definition at line 139 of file geometrical.hpp.

◆ to_vec2()

template<typename CoordinateType >
basic_vector< coordinate_type, 2 > neogfx::basic_delta< CoordinateType >::to_vec2 ( ) const
inline

Definition at line 124 of file geometrical.hpp.

◆ to_vec3()

template<typename CoordinateType >
basic_vector< coordinate_type, 3 > neogfx::basic_delta< CoordinateType >::to_vec3 ( ) const
inline

Definition at line 125 of file geometrical.hpp.

◆ with_dx()

template<typename CoordinateType >
basic_delta neogfx::basic_delta< CoordinateType >::with_dx ( coordinate_type  dx) const
inline

Definition at line 142 of file geometrical.hpp.

◆ with_dy()

template<typename CoordinateType >
basic_delta neogfx::basic_delta< CoordinateType >::with_dy ( coordinate_type  dy) const
inline

Definition at line 143 of file geometrical.hpp.

Member Data Documentation

◆ dx

template<typename CoordinateType >
coordinate_type neogfx::basic_delta< CoordinateType >::dx

Definition at line 153 of file geometrical.hpp.

◆ dy

template<typename CoordinateType >
coordinate_type neogfx::basic_delta< CoordinateType >::dy

Definition at line 154 of file geometrical.hpp.

◆ dz

template<typename CoordinateType >
coordinate_type neogfx::basic_delta< CoordinateType >::dz

Definition at line 155 of file geometrical.hpp.


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