VisuTwin Canvas
C++ 3D Engine — Metal Backend
Loading...
Searching...
No Matches
visutwin::canvas::Vector2T< T > Struct Template Reference

#include <core/math/vector2.h>

Public Member Functions

float length () const
Vector2T< T > operator- (const Vector2T &other) const
 Vector2T ()
 Vector2T (const T s)
 Vector2T (const T x, const T y)

Public Attributes

x
y

Detailed Description

template<typename T>
struct visutwin::canvas::Vector2T< T >

Definition at line 100 of file vector2.h.

Constructor & Destructor Documentation

◆ Vector2T() [1/3]

template<typename T>
visutwin::canvas::Vector2T< T >::Vector2T ( )
inline

Definition at line 104 of file vector2.h.

Referenced by visutwin::canvas::Vector2T< uint32_t >::operator-().

◆ Vector2T() [2/3]

template<typename T>
visutwin::canvas::Vector2T< T >::Vector2T ( const T s)
inlineexplicit

Definition at line 108 of file vector2.h.

◆ Vector2T() [3/3]

template<typename T>
visutwin::canvas::Vector2T< T >::Vector2T ( const T x,
const T y )
inline

Definition at line 112 of file vector2.h.

Member Function Documentation

◆ length()

template<typename T>
float visutwin::canvas::Vector2T< T >::length ( ) const
inlinenodiscard

Definition at line 121 of file vector2.h.

◆ operator-()

template<typename T>
Vector2T< T > visutwin::canvas::Vector2T< T >::operator- ( const Vector2T< T > & other) const
inline

Definition at line 116 of file vector2.h.

Member Data Documentation

◆ x

template<typename T>
T visutwin::canvas::Vector2T< T >::x

Definition at line 102 of file vector2.h.

Referenced by visutwin::canvas::Vector2T< uint32_t >::operator-().

◆ y

template<typename T>
T visutwin::canvas::Vector2T< T >::y

Definition at line 102 of file vector2.h.

Referenced by visutwin::canvas::Vector2T< uint32_t >::operator-().


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