Bike-X  0.8
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
OVR::Vector2< T > Class Template Reference

#include "OVR_Math.h"

Inheritance diagram for OVR::Vector2< T >:
Inheritance graph
Collaboration diagram for OVR::Vector2< T >:
Collaboration graph

Public Types

typedef CompatibleTypes
< Vector2< T > >::Type 
CompatibleType
 

Public Member Functions

 Vector2 ()
 
 Vector2 (T x_, T y_)
 
 Vector2 (T s)
 
 Vector2 (const Vector2< typename Math< T >::OtherFloatType > &src)
 
 Vector2 (const CompatibleType &s)
 
 operator const CompatibleType & () const
 
bool operator== (const Vector2 &b) const
 
bool operator!= (const Vector2 &b) const
 
Vector2 operator+ (const Vector2 &b) const
 
Vector2operator+= (const Vector2 &b)
 
Vector2 operator- (const Vector2 &b) const
 
Vector2operator-= (const Vector2 &b)
 
Vector2 operator- () const
 
Vector2 operator* (T s) const
 
Vector2operator*= (T s)
 
Vector2 operator/ (T s) const
 
Vector2operator/= (T s)
 
bool Compare (const Vector2 &b, T tolerance=Mathf::Tolerance)
 
Vector2 EntrywiseMultiply (const Vector2 &b) const
 
Vector2 operator* (const Vector2 &b) const
 
Vector2 operator/ (const Vector2 &b) const
 
Dot (const Vector2 &b) const
 
Angle (const Vector2 &b) const
 
LengthSq () const
 
Length () const
 
DistanceSq (Vector2 &b) const
 
Distance (Vector2 &b) const
 
bool IsNormalized () const
 
void Normalize ()
 
Vector2 Normalized () const
 
Vector2 Lerp (const Vector2 &b, T f) const
 
Vector2 ProjectTo (const Vector2 &b) const
 

Static Public Member Functions

static Vector2 Min (const Vector2 &a, const Vector2 &b)
 
static Vector2 Max (const Vector2 &a, const Vector2 &b)
 

Data Fields

x
 
y
 

Detailed Description

template<class T>
class OVR::Vector2< T >

Definition at line 124 of file OVR_Math.h.

Member Typedef Documentation

template<class T>
typedef CompatibleTypes<Vector2<T> >::Type OVR::Vector2< T >::CompatibleType

Definition at line 274 of file OVR_Math.h.

Constructor & Destructor Documentation

template<class T>
OVR::Vector2< T >::Vector2 ( )
inline

Definition at line 266 of file OVR_Math.h.

template<class T>
OVR::Vector2< T >::Vector2 ( x_,
y_ 
)
inline

Definition at line 267 of file OVR_Math.h.

template<class T>
OVR::Vector2< T >::Vector2 ( s)
inlineexplicit

Definition at line 268 of file OVR_Math.h.

template<class T>
OVR::Vector2< T >::Vector2 ( const Vector2< typename Math< T >::OtherFloatType > &  src)
inlineexplicit

Definition at line 269 of file OVR_Math.h.

template<class T>
OVR::Vector2< T >::Vector2 ( const CompatibleType s)
inline

Definition at line 276 of file OVR_Math.h.

Member Function Documentation

template<class T>
T OVR::Vector2< T >::Angle ( const Vector2< T > &  b) const
inline

Definition at line 329 of file OVR_Math.h.

template<class T>
bool OVR::Vector2< T >::Compare ( const Vector2< T > &  b,
tolerance = Mathf::Tolerance 
)
inline

Definition at line 310 of file OVR_Math.h.

template<class T>
T OVR::Vector2< T >::Distance ( Vector2< T > &  b) const
inline

Definition at line 347 of file OVR_Math.h.

template<class T>
T OVR::Vector2< T >::DistanceSq ( Vector2< T > &  b) const
inline

Definition at line 344 of file OVR_Math.h.

template<class T>
T OVR::Vector2< T >::Dot ( const Vector2< T > &  b) const
inline

Definition at line 326 of file OVR_Math.h.

template<class T>
Vector2 OVR::Vector2< T >::EntrywiseMultiply ( const Vector2< T > &  b) const
inline

Definition at line 316 of file OVR_Math.h.

template<class T>
bool OVR::Vector2< T >::IsNormalized ( ) const
inline

Definition at line 350 of file OVR_Math.h.

template<class T>
T OVR::Vector2< T >::Length ( ) const
inline

Definition at line 341 of file OVR_Math.h.

template<class T>
T OVR::Vector2< T >::LengthSq ( ) const
inline

Definition at line 338 of file OVR_Math.h.

template<class T>
Vector2 OVR::Vector2< T >::Lerp ( const Vector2< T > &  b,
f 
) const
inline

Definition at line 369 of file OVR_Math.h.

template<class T>
static Vector2 OVR::Vector2< T >::Max ( const Vector2< T > &  a,
const Vector2< T > &  b 
)
inlinestatic

Definition at line 306 of file OVR_Math.h.

template<class T>
static Vector2 OVR::Vector2< T >::Min ( const Vector2< T > &  a,
const Vector2< T > &  b 
)
inlinestatic

Definition at line 304 of file OVR_Math.h.

template<class T>
void OVR::Vector2< T >::Normalize ( )
inline

Definition at line 353 of file OVR_Math.h.

template<class T>
Vector2 OVR::Vector2< T >::Normalized ( ) const
inline

Definition at line 360 of file OVR_Math.h.

template<class T>
OVR::Vector2< T >::operator const CompatibleType & ( ) const
inline

Definition at line 278 of file OVR_Math.h.

template<class T>
bool OVR::Vector2< T >::operator!= ( const Vector2< T > &  b) const
inline

Definition at line 286 of file OVR_Math.h.

template<class T>
Vector2 OVR::Vector2< T >::operator* ( s) const
inline

Definition at line 295 of file OVR_Math.h.

template<class T>
Vector2 OVR::Vector2< T >::operator* ( const Vector2< T > &  b) const
inline

Definition at line 320 of file OVR_Math.h.

template<class T>
Vector2& OVR::Vector2< T >::operator*= ( s)
inline

Definition at line 296 of file OVR_Math.h.

template<class T>
Vector2 OVR::Vector2< T >::operator+ ( const Vector2< T > &  b) const
inline

Definition at line 288 of file OVR_Math.h.

template<class T>
Vector2& OVR::Vector2< T >::operator+= ( const Vector2< T > &  b)
inline

Definition at line 289 of file OVR_Math.h.

template<class T>
Vector2 OVR::Vector2< T >::operator- ( const Vector2< T > &  b) const
inline

Definition at line 290 of file OVR_Math.h.

template<class T>
Vector2 OVR::Vector2< T >::operator- ( ) const
inline

Definition at line 292 of file OVR_Math.h.

template<class T>
Vector2& OVR::Vector2< T >::operator-= ( const Vector2< T > &  b)
inline

Definition at line 291 of file OVR_Math.h.

template<class T>
Vector2 OVR::Vector2< T >::operator/ ( s) const
inline

Definition at line 298 of file OVR_Math.h.

template<class T>
Vector2 OVR::Vector2< T >::operator/ ( const Vector2< T > &  b) const
inline

Definition at line 321 of file OVR_Math.h.

template<class T>
Vector2& OVR::Vector2< T >::operator/= ( s)
inline

Definition at line 300 of file OVR_Math.h.

template<class T>
bool OVR::Vector2< T >::operator== ( const Vector2< T > &  b) const
inline

Definition at line 285 of file OVR_Math.h.

template<class T>
Vector2 OVR::Vector2< T >::ProjectTo ( const Vector2< T > &  b) const
inline

Definition at line 373 of file OVR_Math.h.

Field Documentation

template<class T>
T OVR::Vector2< T >::x

Definition at line 264 of file OVR_Math.h.

template<class T>
T OVR::Vector2< T >::y

Definition at line 264 of file OVR_Math.h.


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