CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes
mathSSE::Vec2< T > Union Template Reference

#include <SSEVec.h>

Public Member Functions

template<int N>
Vec2 get1 () const
 
Toperator[] (unsigned int n)
 
T operator[] (unsigned int n) const
 
void set (T f1, T f2)
 
 Vec2 ()
 
 Vec2 (T f1, T f2)
 
 Vec2 (T f1)
 
template<typename U >
 Vec2 (Vec2< U > v)
 
 Vec2 (Vec4< T > v4)
 

Public Attributes

T arr [2]
 

Detailed Description

template<typename T>
union mathSSE::Vec2< T >

Definition at line 115 of file SSEVec.h.

Constructor & Destructor Documentation

template<typename T>
mathSSE::Vec2< T >::Vec2 ( )
inline

Definition at line 116 of file SSEVec.h.

Referenced by mathSSE::as3D().

116  {
117  arr[0] = 0; arr[1] = 0;
118  }
T arr[2]
Definition: SSEVec.h:158
template<typename T>
mathSSE::Vec2< T >::Vec2 ( T  f1,
T  f2 
)
inline

Definition at line 119 of file SSEVec.h.

119  {
120  arr[0] = f1; arr[1] = f2;
121  }
T arr[2]
Definition: SSEVec.h:158
template<typename T>
mathSSE::Vec2< T >::Vec2 ( T  f1)
inlineexplicit

Definition at line 122 of file SSEVec.h.

122  {
123  arr[0] = f1; arr[1] = f1;
124  }
T arr[2]
Definition: SSEVec.h:158
template<typename T>
template<typename U >
mathSSE::Vec2< T >::Vec2 ( Vec2< U >  v)
inline

Definition at line 142 of file SSEVec.h.

142  {
143  arr[0] = v[0]; arr[1] = v[1];
144 
145  }
T arr[2]
Definition: SSEVec.h:158
template<typename T>
mathSSE::Vec2< T >::Vec2 ( Vec4< T v4)
inline

Member Function Documentation

template<typename T>
template<int N>
Vec2 mathSSE::Vec2< T >::get1 ( ) const
inline

Definition at line 131 of file SSEVec.h.

131  {
132  return Vec2(arr[N],arr[N]);
133  }
T arr[2]
Definition: SSEVec.h:158
#define N
Definition: blowfish.cc:9
template<typename T>
T& mathSSE::Vec2< T >::operator[] ( unsigned int  n)
inline

Definition at line 149 of file SSEVec.h.

149  {
150  return arr[n];
151  }
T arr[2]
Definition: SSEVec.h:158
template<typename T>
T mathSSE::Vec2< T >::operator[] ( unsigned int  n) const
inline

Definition at line 153 of file SSEVec.h.

153  {
154  return arr[n];
155  }
T arr[2]
Definition: SSEVec.h:158
template<typename T>
void mathSSE::Vec2< T >::set ( T  f1,
T  f2 
)
inline

Definition at line 126 of file SSEVec.h.

126  {
127  arr[0] = f1; arr[1] = f2;
128  }
T arr[2]
Definition: SSEVec.h:158

Member Data Documentation

template<typename T>
T mathSSE::Vec2< T >::arr[2]