CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 145 of file SSEVec.h.

Constructor & Destructor Documentation

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

Definition at line 146 of file SSEVec.h.

Referenced by mathSSE::Vec2< TmpType >::get1().

146  {
147  arr[0] = 0; arr[1] = 0;
148  }
T arr[2]
Definition: SSEVec.h:188
template<typename T>
mathSSE::Vec2< T >::Vec2 ( T  f1,
T  f2 
)
inline

Definition at line 149 of file SSEVec.h.

149  {
150  arr[0] = f1; arr[1] = f2;
151  }
T arr[2]
Definition: SSEVec.h:188
template<typename T>
mathSSE::Vec2< T >::Vec2 ( T  f1)
inlineexplicit

Definition at line 152 of file SSEVec.h.

152  {
153  arr[0] = f1; arr[1] = f1;
154  }
T arr[2]
Definition: SSEVec.h:188
template<typename T>
template<typename U >
mathSSE::Vec2< T >::Vec2 ( Vec2< U >  v)
inline

Definition at line 172 of file SSEVec.h.

172  {
173  arr[0] = v[0]; arr[1] = v[1];
174 
175  }
T arr[2]
Definition: SSEVec.h:188
template<typename T>
mathSSE::Vec2< T >::Vec2 ( Vec4< T v4)
inline

Definition at line 228 of file SSEVec.h.

228  {
229  arr[0]=v4[0];arr[1]=v4[1];
230  }
T arr[2]
Definition: SSEVec.h:188

Member Function Documentation

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

Definition at line 161 of file SSEVec.h.

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

Definition at line 179 of file SSEVec.h.

179  {
180  return arr[n];
181  }
T arr[2]
Definition: SSEVec.h:188
template<typename T>
T mathSSE::Vec2< T >::operator[] ( unsigned int  n) const
inline

Definition at line 183 of file SSEVec.h.

183  {
184  return arr[n];
185  }
T arr[2]
Definition: SSEVec.h:188
template<typename T>
void mathSSE::Vec2< T >::set ( T  f1,
T  f2 
)
inline

Definition at line 156 of file SSEVec.h.

Referenced by betterConfigParser.BetterConfigParser::getGeneral().

156  {
157  arr[0] = f1; arr[1] = f2;
158  }
T arr[2]
Definition: SSEVec.h:188

Member Data Documentation

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