Twilight Princess
Decompilation of The Legend of Zelda: Twilight Princess
Loading...
Searching...
No Matches
JGeometry::TVec2< T > Struct Template Reference

#include <JGeometry.h>

Public Member Functions

 TVec2 ()
 
 TVec2 (T v)
 
 TVec2 (T x, T y)
 
void set (T v)
 
void set (T x, T y)
 
void set (const TVec2 &other)
 
void setMin (const TVec2< f32 > &min)
 
void setMax (const TVec2< f32 > &max)
 
void add (const TVec2< T > &other)
 
bool isAbove (const TVec2< T > &other) const
 
f32 dot (const TVec2< T > &other)
 
f32 squared ()
 
f32 length ()
 

Public Attributes

T x
 
T y
 

Constructor & Destructor Documentation

◆ TVec2() [1/3]

template<typename T >
JGeometry::TVec2< T >::TVec2 ( )
inline

◆ TVec2() [2/3]

template<typename T >
JGeometry::TVec2< T >::TVec2 ( T  v)
inline

◆ TVec2() [3/3]

template<typename T >
JGeometry::TVec2< T >::TVec2 ( T  x,
T  y 
)
inline

Member Function Documentation

◆ add()

template<typename T >
void JGeometry::TVec2< T >::add ( const TVec2< T > &  other)
inline

◆ dot()

template<typename T >
f32 JGeometry::TVec2< T >::dot ( const TVec2< T > &  other)
inline

◆ isAbove()

template<typename T >
bool JGeometry::TVec2< T >::isAbove ( const TVec2< T > &  other) const
inline

◆ length()

template<typename T >
f32 JGeometry::TVec2< T >::length ( )
inline

◆ set() [1/3]

template<typename T >
void JGeometry::TVec2< T >::set ( const TVec2< T > &  other)
inline

◆ set() [2/3]

template<typename T >
void JGeometry::TVec2< T >::set ( T  v)
inline

◆ set() [3/3]

template<typename T >
void JGeometry::TVec2< T >::set ( T  x,
T  y 
)
inline

◆ setMax()

template<typename T >
void JGeometry::TVec2< T >::setMax ( const TVec2< f32 > &  max)
inline

◆ setMin()

template<typename T >
void JGeometry::TVec2< T >::setMin ( const TVec2< f32 > &  min)
inline

◆ squared()

template<typename T >
f32 JGeometry::TVec2< T >::squared ( )
inline

Member Data Documentation

◆ x

template<typename T >
T JGeometry::TVec2< T >::x

◆ y

template<typename T >
T JGeometry::TVec2< T >::y

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