Public Member Functions | Public Attributes
OVR::Vector2< T > Class Template Reference

#include <OVR_Math.h>

List of all members.

Public Member Functions

Angle (const Vector2 &b) const
bool Compare (const Vector2 &b, T tolerance=Mathf::Tolerance)
Distance (Vector2 &b) const
bool IsNormalized () const
Length () const
LengthSq () const
Vector2 Lerp (const Vector2 &b, T f) const
void Normalize ()
Vector2 Normalized () const
bool operator!= (const Vector2 &b) const
Vector2 operator* (T s) const
operator* (const Vector2 &b) const
Vector2operator*= (T s)
Vector2 operator+ (const Vector2 &b) const
Vector2operator+= (const Vector2 &b)
Vector2 operator- (const Vector2 &b) const
Vector2 operator- () const
Vector2operator-= (const Vector2 &b)
Vector2 operator/ (T s) const
Vector2operator/= (T s)
bool operator== (const Vector2 &b) const
Vector2 ProjectTo (const Vector2 &b) const
 Vector2 ()
 Vector2 (T x_, T y_)
 Vector2 (T s)

Public Attributes

x
y

Detailed Description

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

Definition at line 148 of file OVR_Math.h.


Constructor & Destructor Documentation

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

Definition at line 153 of file OVR_Math.h.

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

Definition at line 154 of file OVR_Math.h.

template<class T >
OVR::Vector2< T >::Vector2 ( s) [inline, explicit]

Definition at line 155 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 188 of file OVR_Math.h.

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

Definition at line 177 of file OVR_Math.h.

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

Definition at line 196 of file OVR_Math.h.

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

Definition at line 199 of file OVR_Math.h.

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

Definition at line 193 of file OVR_Math.h.

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

Definition at line 191 of file OVR_Math.h.

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

Definition at line 207 of file OVR_Math.h.

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

Definition at line 201 of file OVR_Math.h.

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

Definition at line 203 of file OVR_Math.h.

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

Definition at line 158 of file OVR_Math.h.

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

Definition at line 167 of file OVR_Math.h.

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

Definition at line 185 of file OVR_Math.h.

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

Definition at line 168 of file OVR_Math.h.

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

Definition at line 160 of file OVR_Math.h.

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

Definition at line 161 of file OVR_Math.h.

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

Definition at line 162 of file OVR_Math.h.

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

Definition at line 164 of file OVR_Math.h.

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

Definition at line 163 of file OVR_Math.h.

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

Definition at line 170 of file OVR_Math.h.

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

Definition at line 172 of file OVR_Math.h.

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

Definition at line 157 of file OVR_Math.h.

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

Definition at line 211 of file OVR_Math.h.


Member Data Documentation

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

Definition at line 151 of file OVR_Math.h.

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

Definition at line 151 of file OVR_Math.h.


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


oculus_sdk
Author(s): Tully Foote
autogenerated on Thu Jun 6 2019 20:13:49