Kochol Game Engine  0.1.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
kge::math::Vector2< T > Class Template Reference

2D Vector More...

#include <Vector.h>

Public Member Functions

 Vector2 ()
 Sazande.
 Vector2 (T x, T y)
 Sazande ke mitonid bahash x,y ra meghdar bedid.
float GetSqrDistance (const Vector2< T > &v) const
Vector2< T > operator- (const Vector2< T > &v) const
void Normalize ()
float operator* (const Vector2< T > &v)
 Dot product.
bool operator== (const Vector2< T > &v) const
 Dot product.

Public Attributes

x
y
 x

Detailed Description

template<typename T>
class kge::math::Vector2< T >

2D Vector

Definition at line 209 of file Vector.h.

Constructor & Destructor Documentation

template<typename T>
kge::math::Vector2< T >::Vector2 ( )
inline

Sazande.

Definition at line 214 of file Vector.h.

template<typename T>
kge::math::Vector2< T >::Vector2 ( x,
y 
)
inline

Sazande ke mitonid bahash x,y ra meghdar bedid.

Definition at line 217 of file Vector.h.

Member Function Documentation

template<typename T>
float kge::math::Vector2< T >::GetSqrDistance ( const Vector2< T > &  v) const
inline

Definition at line 221 of file Vector.h.

References kge::math::Vector2< T >::x, and kge::math::Vector2< T >::y.

template<typename T>
void kge::math::Vector2< T >::Normalize ( )
inline
template<typename T>
float kge::math::Vector2< T >::operator* ( const Vector2< T > &  v)
inline

Dot product.

Definition at line 242 of file Vector.h.

References kge::math::Vector2< T >::x, and kge::math::Vector2< T >::y.

template<typename T>
Vector2<T> kge::math::Vector2< T >::operator- ( const Vector2< T > &  v) const
inline

Definition at line 228 of file Vector.h.

References kge::math::Vector2< T >::x, and kge::math::Vector2< T >::y.

template<typename T>
bool kge::math::Vector2< T >::operator== ( const Vector2< T > &  v) const
inline

Dot product.

Definition at line 249 of file Vector.h.

References kge::math::Vector2< T >::x, and kge::math::Vector2< T >::y.

Member Data Documentation


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