![]() |
Kochol Game Engine
0.1.0
|
#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 | |
| T | x |
| T | y |
| x | |
2D Vector
|
inline |
|
inline |
|
inline |
Definition at line 221 of file Vector.h.
References kge::math::Vector2< T >::x, and kge::math::Vector2< T >::y.
|
inline |
Definition at line 233 of file Vector.h.
References kge::math::fEpsilon, kge::math::Vector2< T >::x, and kge::math::Vector2< T >::y.
|
inline |
Dot product.
Definition at line 242 of file Vector.h.
References kge::math::Vector2< T >::x, and kge::math::Vector2< T >::y.
|
inline |
Definition at line 228 of file Vector.h.
References kge::math::Vector2< T >::x, and kge::math::Vector2< T >::y.
|
inline |
Dot product.
Definition at line 249 of file Vector.h.
References kge::math::Vector2< T >::x, and kge::math::Vector2< T >::y.
| T kge::math::Vector2< T >::x |
Definition at line 255 of file Vector.h.
Referenced by kge::math::Vector2< T >::GetSqrDistance(), kge::math::Vector2< T >::Normalize(), kge::math::Vector2< T >::operator*(), kge::math::Vector2< T >::operator-(), and kge::math::Vector2< T >::operator==().
| T kge::math::Vector2< T >::y |
x
Definition at line 256 of file Vector.h.
Referenced by kge::math::Vector2< T >::GetSqrDistance(), kge::math::Vector2< T >::Normalize(), kge::math::Vector2< T >::operator*(), kge::math::Vector2< T >::operator-(), and kge::math::Vector2< T >::operator==().