Libovr 1.26 Reference Guide

OVR::Vector2 Class Reference

Public Types

T
CompatibleTypes< Vector2< T > >::Type

Static Fields

static const size_t

Data Fields

T
x ( )
T
y ( )

Public Member Functions

Vector2 ( )
Vector2 ( T x_, T y_ )
Vector2 ( T s )
Vector2 ( const Vector2< typename Math< T >::OtherFloatType > & src )
Vector2 ( const CompatibleType & s )
bool
operator== ( const Vector2 & b )
bool
operator!= ( const Vector2 & b )
Vector2
operator+ ( const Vector2 & b )
Vector2 &
operator+= ( const Vector2 & b )
Vector2
operator- ( const Vector2 & b )
Vector2 &
operator-= ( const Vector2 & b )
Vector2
Vector2
operator* ( T s )
Vector2 &
operator*= ( T s )
Vector2
operator/ ( T s )
Vector2 &
operator/= ( T s )
Vector2
Clamped ( T maxMag )
bool
IsEqual ( const Vector2 & b, T tolerance )
bool
Compare ( const Vector2 & b, T tolerance )
T &
operator[] ( int idx )
const T &
operator[] ( int idx )
Vector2
EntrywiseMultiply ( const Vector2 & b )
Vector2
operator* ( const Vector2 & b )
Vector2
operator/ ( const Vector2 & b )
T
Dot ( const Vector2 & b )
T
Angle ( const Vector2 & b )
T
T
Length ( )
T
DistanceSq ( const Vector2 & b )
T
Distance ( const Vector2 & b )
bool
void
Vector2
Vector2
Lerp ( const Vector2 & b, T f )
Vector2
ProjectTo ( const Vector2 & b )
bool
IsClockwise ( const Vector2 & b )

Static Public Member Functions

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

Member Enumeration Documentation

typedef T OVR::Vector2< T >::ElementType ( )
typedef CompatibleTypes<Vector2<T> >::Type OVR::Vector2< T >::CompatibleType ( )

Public Static Documentation

const size_t OVR::Vector2< T >::ElementCount ( )

Field Documentation

T OVR::Vector2< T >::x ( )
T OVR::Vector2< T >::y ( )

Member Function Documentation

OVR::Vector2< T >::Vector2 ( )
OVR::Vector2< T >::Vector2 ( T x_, T y_ )
OVR::Vector2< T >::Vector2 ( T s )
OVR::Vector2< T >::Vector2 ( const Vector2< typename Math< T >::OtherFloatType > & src )
OVR::Vector2< T >::Vector2 ( const CompatibleType & s )
OVR::Vector2< T >::operator const CompatibleType & ( )
bool OVR::Vector2< T >::operator== ( const Vector2 & b )
bool OVR::Vector2< T >::operator!= ( const Vector2 & b )
Vector2 OVR::Vector2< T >::operator+ ( const Vector2 & b )
Vector2& OVR::Vector2< T >::operator+= ( const Vector2 & b )
Vector2 OVR::Vector2< T >::operator- ( const Vector2 & b )
Vector2& OVR::Vector2< T >::operator-= ( const Vector2 & b )
Vector2 OVR::Vector2< T >::operator- ( )
Vector2 OVR::Vector2< T >::operator* ( T s )
Vector2& OVR::Vector2< T >::operator*= ( T s )
Vector2 OVR::Vector2< T >::operator/ ( T s )
Vector2& OVR::Vector2< T >::operator/= ( T s )
Vector2 OVR::Vector2< T >::Clamped ( T maxMag )
bool OVR::Vector2< T >::IsEqual ( const Vector2 & b, T tolerance )
bool OVR::Vector2< T >::Compare ( const Vector2 & b, T tolerance )
T& OVR::Vector2< T >::operator[] ( int idx )
const T& OVR::Vector2< T >::operator[] ( int idx )
Vector2 OVR::Vector2< T >::EntrywiseMultiply ( const Vector2 & b )
Vector2 OVR::Vector2< T >::operator* ( const Vector2 & b )
Vector2 OVR::Vector2< T >::operator/ ( const Vector2 & b )
T OVR::Vector2< T >::Dot ( const Vector2 & b )
T OVR::Vector2< T >::Angle ( const Vector2 & b )
T OVR::Vector2< T >::LengthSq ( )
T OVR::Vector2< T >::Length ( )
T OVR::Vector2< T >::DistanceSq ( const Vector2 & b )
T OVR::Vector2< T >::Distance ( const Vector2 & b )
bool OVR::Vector2< T >::IsNormalized ( )
void OVR::Vector2< T >::Normalize ( )
Vector2 OVR::Vector2< T >::Normalized ( )
Vector2 OVR::Vector2< T >::Lerp ( const Vector2 & b, T f )
Vector2 OVR::Vector2< T >::ProjectTo ( const Vector2 & b )
bool OVR::Vector2< T >::IsClockwise ( const Vector2 & b )

Static Member Function Documentation

static Vector2 OVR::Vector2< T >::Zero ( )
static Vector2 OVR::Vector2< T >::Min ( const Vector2 & a, const Vector2 & b )
static Vector2 OVR::Vector2< T >::Max ( const Vector2 & a, const Vector2 & b )
The documentation for this class was generated from the following file: Include/Extras/OVR_Math.h