sofa::gpu::cuda::Vec3r1< Real > Class Template Reference

#include <CudaTypes.h>

Inheritance diagram for sofa::gpu::cuda::Vec3r1< Real >:

Inheritance graph
[legend]
Collaboration diagram for sofa::gpu::cuda::Vec3r1< Real >:

Collaboration graph
[legend]

Public Types

enum  { N = 3 }
typedef sofa::defaulttype::Vec
< 3, Real > 
Inherit
typedef Real real

Public Member Functions

 Vec3r1 ()
template<class real2 >
 Vec3r1 (const Vec< N, real2 > &v)
 Vec3r1 (float x, float y, float z)
 Vec3r1 (NoInit n)
 Fast constructor: no initialization.
template<class real2 >
Vec3r1 operator* (real2 f) const
 Multiplication by a scalar f.
template<class real2 >
void operator*= (real2 f)
 On-place multiplication by a scalar f.
template<class real2 >
Vec3r1 operator/ (real2 f) const
 Division by a scalar f.
template<class real2 >
void operator/= (real2 f)
 On-place division by a scalar f.
template<class real2 >
real operator* (const Vec< N, real2 > &v) const
 Dot product.
real operator* (const Vec3r1 &v) const
 Dot product.
template<class real2 >
Vec3r1 linearProduct (const Vec< N, real2 > &v) const
 linear product.
Vec3r1 linearProduct (const Vec3r1 &v) const
 linear product.
template<class real2 >
Vec3r1 operator+ (const Vec< N, real2 > &v) const
 Vector addition.
Vec3r1 operator+ (const Vec3r1 &v) const
 Vector addition.
template<class real2 >
void operator+= (const Vec< N, real2 > &v)
 On-place vector addition.
void operator+= (const Vec3r1 &v)
 On-place vector addition.
template<class real2 >
Vec3r1 operator- (const Vec< N, real2 > &v) const
 Vector subtraction.
Vec3r1 operator- (const Vec3r1 &v) const
 Vector subtraction.
template<class real2 >
void operator-= (const Vec< N, real2 > &v)
 On-place vector subtraction.
void operator-= (const Vec3r1 &v)
 On-place vector subtraction.
Vec3r1 operator- () const
 Vector negation.
Vec3r1 cross (const Vec3r1 &b) const

Protected Attributes

float dummy

Detailed Description

template<class Real>
class sofa::gpu::cuda::Vec3r1< Real >

Definition at line 738 of file CudaTypes.h.


Member Typedef Documentation

template<class Real >
typedef sofa::defaulttype::Vec<3,Real> sofa::gpu::cuda::Vec3r1< Real >::Inherit

Definition at line 741 of file CudaTypes.h.

template<class Real >
typedef Real sofa::gpu::cuda::Vec3r1< Real >::real

Definition at line 742 of file CudaTypes.h.


Member Enumeration Documentation

template<class Real >
anonymous enum

Enumerator:
N 

Definition at line 743 of file CudaTypes.h.


Constructor & Destructor Documentation

template<class Real >
sofa::gpu::cuda::Vec3r1< Real >::Vec3r1 (  )  [inline]

Definition at line 744 of file CudaTypes.h.

Referenced by sofa::gpu::cuda::Vec3r1< Real >::cross().

template<class Real >
template<class real2 >
sofa::gpu::cuda::Vec3r1< Real >::Vec3r1 ( const Vec< N, real2 > &  v  )  [inline]

Definition at line 746 of file CudaTypes.h.

template<class Real >
sofa::gpu::cuda::Vec3r1< Real >::Vec3r1 ( float  x,
float  y,
float  z 
) [inline]

Definition at line 747 of file CudaTypes.h.

template<class Real >
sofa::gpu::cuda::Vec3r1< Real >::Vec3r1 ( NoInit  n  )  [inline, explicit]

Fast constructor: no initialization.

Definition at line 750 of file CudaTypes.h.


Member Function Documentation

template<class Real >
Vec3r1 sofa::gpu::cuda::Vec3r1< Real >::cross ( const Vec3r1< Real > &  b  )  const [inline]

template<class Real >
Vec3r1 sofa::gpu::cuda::Vec3r1< Real >::linearProduct ( const Vec3r1< Real > &  v  )  const [inline]

template<class Real >
template<class real2 >
Vec3r1 sofa::gpu::cuda::Vec3r1< Real >::linearProduct ( const Vec< N, real2 > &  v  )  const [inline]

template<class Real >
real sofa::gpu::cuda::Vec3r1< Real >::operator* ( const Vec3r1< Real > &  v  )  const [inline]

Dot product.

Definition at line 802 of file CudaTypes.h.

References sofa::helper::fixed_array< real, N >::elems, and sofa::gpu::cuda::Vec3r1< Real >::N.

template<class Real >
template<class real2 >
real sofa::gpu::cuda::Vec3r1< Real >::operator* ( const Vec< N, real2 > &  v  )  const [inline]

Dot product.

Reimplemented from sofa::defaulttype::Vec< 3, Real >.

Definition at line 793 of file CudaTypes.h.

References sofa::helper::fixed_array< real, N >::elems, and sofa::gpu::cuda::Vec3r1< Real >::N.

template<class Real >
template<class real2 >
Vec3r1 sofa::gpu::cuda::Vec3r1< Real >::operator* ( real2  f  )  const [inline]

Multiplication by a scalar f.

Reimplemented from sofa::defaulttype::Vec< 3, Real >.

Definition at line 758 of file CudaTypes.h.

References sofa::helper::fixed_array< real, N >::elems, sofa::gpu::cuda::Vec3r1< Real >::N, and sofa::defaulttype::NOINIT.

template<class Real >
template<class real2 >
void sofa::gpu::cuda::Vec3r1< Real >::operator*= ( real2  f  )  [inline]

On-place multiplication by a scalar f.

Reimplemented from sofa::defaulttype::Vec< 3, Real >.

Definition at line 768 of file CudaTypes.h.

References sofa::helper::fixed_array< real, N >::elems, and sofa::gpu::cuda::Vec3r1< Real >::N.

template<class Real >
Vec3r1 sofa::gpu::cuda::Vec3r1< Real >::operator+ ( const Vec3r1< Real > &  v  )  const [inline]

template<class Real >
template<class real2 >
Vec3r1 sofa::gpu::cuda::Vec3r1< Real >::operator+ ( const Vec< N, real2 > &  v  )  const [inline]

template<class Real >
void sofa::gpu::cuda::Vec3r1< Real >::operator+= ( const Vec3r1< Real > &  v  )  [inline]

On-place vector addition.

Definition at line 857 of file CudaTypes.h.

References sofa::helper::fixed_array< real, N >::elems, and sofa::gpu::cuda::Vec3r1< Real >::N.

template<class Real >
template<class real2 >
void sofa::gpu::cuda::Vec3r1< Real >::operator+= ( const Vec< N, real2 > &  v  )  [inline]

On-place vector addition.

Reimplemented from sofa::defaulttype::Vec< 3, Real >.

Definition at line 850 of file CudaTypes.h.

References sofa::helper::fixed_array< real, N >::elems, and sofa::gpu::cuda::Vec3r1< Real >::N.

template<class Real >
Vec3r1 sofa::gpu::cuda::Vec3r1< Real >::operator- (  )  const [inline]

template<class Real >
Vec3r1 sofa::gpu::cuda::Vec3r1< Real >::operator- ( const Vec3r1< Real > &  v  )  const [inline]

template<class Real >
template<class real2 >
Vec3r1 sofa::gpu::cuda::Vec3r1< Real >::operator- ( const Vec< N, real2 > &  v  )  const [inline]

template<class Real >
void sofa::gpu::cuda::Vec3r1< Real >::operator-= ( const Vec3r1< Real > &  v  )  [inline]

On-place vector subtraction.

Definition at line 891 of file CudaTypes.h.

References sofa::helper::fixed_array< real, N >::elems, and sofa::gpu::cuda::Vec3r1< Real >::N.

template<class Real >
template<class real2 >
void sofa::gpu::cuda::Vec3r1< Real >::operator-= ( const Vec< N, real2 > &  v  )  [inline]

On-place vector subtraction.

Reimplemented from sofa::defaulttype::Vec< 3, Real >.

Definition at line 884 of file CudaTypes.h.

References sofa::helper::fixed_array< real, N >::elems, and sofa::gpu::cuda::Vec3r1< Real >::N.

template<class Real >
template<class real2 >
Vec3r1 sofa::gpu::cuda::Vec3r1< Real >::operator/ ( real2  f  )  const [inline]

template<class Real >
template<class real2 >
void sofa::gpu::cuda::Vec3r1< Real >::operator/= ( real2  f  )  [inline]

On-place division by a scalar f.

Reimplemented from sofa::defaulttype::Vec< 3, Real >.

Definition at line 785 of file CudaTypes.h.

References sofa::helper::fixed_array< real, N >::elems, and sofa::gpu::cuda::Vec3r1< Real >::N.


Field Documentation

template<class Real >
float sofa::gpu::cuda::Vec3r1< Real >::dummy [protected]

Definition at line 917 of file CudaTypes.h.


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

Generated on Sun Nov 23 04:24:06 2008 for Sofa by  doxygen 1.5.7.1