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::Vec4< T > Union Template Reference

#include <SSEVec.h>

Public Member Functions

__attribute__ ((aligned(16))) arr[4]
 
Vec4 get1 (unsigned int n) const
 
void set (float f1, float f2, float f3, float f4=0)
 
void set1 (float f1)
 
 Vec4 ()
 
 Vec4 (float f1, float f2, float f3, float f4=0)
 
 Vec4 (float f1)
 
Vec2< T > xy () const
 
Vec2< T > zw () const
 

Public Attributes

OldVec< T > o
 

Detailed Description

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

Definition at line 141 of file SSEVec.h.

Constructor & Destructor Documentation

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

Definition at line 142 of file SSEVec.h.

142  {
143  arr[0] = 0; arr[1] = 0; arr[2] = 0; arr[3]=0;
144  }
template<typename T>
mathSSE::Vec4< T >::Vec4 ( float  f1,
float  f2,
float  f3,
float  f4 = 0 
)
inline

Definition at line 145 of file SSEVec.h.

145  {
146  arr[0] = f1; arr[1] = f2; arr[2] = f3; arr[3]=f4;
147  }
template<typename T>
mathSSE::Vec4< T >::Vec4 ( float  f1)
inlineexplicit

Definition at line 148 of file SSEVec.h.

148  {
149  set1(f1);
150  }
void set1(float f1)
Definition: SSEVec.h:154

Member Function Documentation

template<typename T>
T mathSSE::Vec4< T >::__attribute__ ( (aligned(16))  )
template<typename T>
Vec4 mathSSE::Vec4< T >::get1 ( unsigned int  n) const
inline

Definition at line 157 of file SSEVec.h.

Referenced by mathSSE::Rot3< align::Scalar >::rotateBack().

157  {
158  return Vec4(arr[n],arr[n],arr[n],arr[n]);
159  }
template<typename T>
void mathSSE::Vec4< T >::set ( float  f1,
float  f2,
float  f3,
float  f4 = 0 
)
inline

Definition at line 151 of file SSEVec.h.

151  {
152  arr[0] = f1; arr[1] = f2; arr[2] = f3; arr[3]=f4;
153  }
template<typename T>
void mathSSE::Vec4< T >::set1 ( float  f1)
inline

Definition at line 154 of file SSEVec.h.

154  {
155  arr[0] = f1; arr[1] = f1; arr[2] = f1; arr[3]=f1;
156  }
template<typename T>
Vec2<T> mathSSE::Vec4< T >::xy ( ) const
inline

Definition at line 161 of file SSEVec.h.

Referenced by geometryXMLparser.Alignable::covariance().

161 { return Vec2<T>(arr[0],arr[1]);}
template<typename T>
Vec2<T> mathSSE::Vec4< T >::zw ( ) const
inline

Definition at line 162 of file SSEVec.h.

162 { return Vec2<T>(arr[2],arr[3]);}

Member Data Documentation

template<typename T>
OldVec<T> mathSSE::Vec4< T >::o

Definition at line 167 of file SSEVec.h.