CMS 3D CMS Logo

Public Member Functions

mathSSE::Vec2< T > Union Template Reference

#include <SSEVec.h>

List of all members.

Public Member Functions

__attribute__ ((aligned(16))) arr[2]
Vec2 get1 (unsigned int n) const
operator[] (unsigned int n) const
T & operator[] (unsigned int n)
void set (T f1, T f2)
 Vec2 (T f1, T f2)
 Vec2 (T f1)
 Vec2 ()

Detailed Description

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

Definition at line 111 of file SSEVec.h.


Constructor & Destructor Documentation

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

Definition at line 112 of file SSEVec.h.

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

           {
      arr[0] = 0; arr[1] = 0;
    }
template<typename T>
mathSSE::Vec2< T >::Vec2 ( f1,
f2 
) [inline]

Definition at line 115 of file SSEVec.h.

References connectstrParser::f1, and connectstrParser::f2.

                     {
      arr[0] = f1; arr[1] = f2;
    }
template<typename T>
mathSSE::Vec2< T >::Vec2 ( f1) [inline, explicit]

Definition at line 118 of file SSEVec.h.

References connectstrParser::f1.

                        {
      arr[0] = f1; arr[1] = f1;
    }

Member Function Documentation

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

Definition at line 124 of file SSEVec.h.

References mathSSE::Vec2< T >::Vec2().

                                    {
      return Vec2(arr[n],arr[n]);
    }
template<typename T>
T mathSSE::Vec2< T >::operator[] ( unsigned int  n) const [inline]

Definition at line 132 of file SSEVec.h.

References n.

                                       {
      return arr[n];
    }
template<typename T>
T& mathSSE::Vec2< T >::operator[] ( unsigned int  n) [inline]

Definition at line 128 of file SSEVec.h.

References n.

                                   {
      return arr[n];
    }
template<typename T>
void mathSSE::Vec2< T >::set ( f1,
f2 
) [inline]

Definition at line 121 of file SSEVec.h.

References connectstrParser::f1, and connectstrParser::f2.

                         {
      arr[0] = f1; arr[1] = f2;
    }