jade-engine  0.0
JadeEngine::Vector2D< ValueType > Class Template Reference

#include <Vector2D.h>

Public Member Functions

 Vector2D (const ValueType xPositionWSize, const ValueType yPositionHSize)
 
 Vector2D (const Vector2D &other)
 
 Vector2D (Vector2D &&other)
 
Vector2Doperator= (const Vector2D &other)
 
Vector2Doperator= (Vector2D &&other)
 
Vector2D operator+ (const Vector2D &other) const
 
Vector2D operator- (const Vector2D &other) const
 
Vector2D operator/ (const ValueType number) const
 
Vector2D operator* (const ValueType number) const
 
Vector2D operator* (const Vector2D &other) const
 
bool operator== (const Vector2D &other) const
 
bool operator!= (const Vector2D &other) const
 
bool operator< (const Vector2D &other) const
 
ValueType SizeSq () const
 
float Size () const
 
Vector2D Normalized () const
 
template<typename OtherValueType >
Vector2D< OtherValueType > Convert () const
 

Public Attributes

union {
   ValueType   x
 
   ValueType   w
 
}; 
 
union {
   ValueType   y
 
   ValueType   h
 
}; 
 

Detailed Description

template<typename ValueType>
class JadeEngine::Vector2D< ValueType >

Vector2F represents a two dimensional integral point or vector in the screen or world coordinate system.


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