#include <CudaTypes.h>


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 |
Definition at line 738 of file CudaTypes.h.
| typedef sofa::defaulttype::Vec<3,Real> sofa::gpu::cuda::Vec3r1< Real >::Inherit |
Definition at line 741 of file CudaTypes.h.
| typedef Real sofa::gpu::cuda::Vec3r1< Real >::real |
Definition at line 742 of file CudaTypes.h.
| anonymous enum |
| sofa::gpu::cuda::Vec3r1< Real >::Vec3r1 | ( | ) | [inline] |
| sofa::gpu::cuda::Vec3r1< Real >::Vec3r1 | ( | const Vec< N, real2 > & | v | ) | [inline] |
Definition at line 746 of file CudaTypes.h.
| sofa::gpu::cuda::Vec3r1< Real >::Vec3r1 | ( | float | x, | |
| float | y, | |||
| float | z | |||
| ) | [inline] |
Definition at line 747 of file CudaTypes.h.
| sofa::gpu::cuda::Vec3r1< Real >::Vec3r1 | ( | NoInit | n | ) | [inline, explicit] |
| Vec3r1 sofa::gpu::cuda::Vec3r1< Real >::cross | ( | const Vec3r1< Real > & | b | ) | const [inline] |
Definition at line 906 of file CudaTypes.h.
References BOOST_STATIC_ASSERT, sofa::gpu::cuda::Vec3r1< Real >::N, and sofa::gpu::cuda::Vec3r1< Real >::Vec3r1().
| Vec3r1 sofa::gpu::cuda::Vec3r1< Real >::linearProduct | ( | const Vec3r1< Real > & | v | ) | const [inline] |
linear product.
Definition at line 821 of file CudaTypes.h.
References sofa::helper::fixed_array< real, N >::elems, sofa::gpu::cuda::Vec3r1< Real >::N, and sofa::defaulttype::NOINIT.
| Vec3r1 sofa::gpu::cuda::Vec3r1< Real >::linearProduct | ( | const Vec< N, real2 > & | v | ) | const [inline] |
linear product.
Reimplemented from sofa::defaulttype::Vec< 3, Real >.
Definition at line 812 of file CudaTypes.h.
References sofa::helper::fixed_array< real, N >::elems, sofa::gpu::cuda::Vec3r1< Real >::N, and sofa::defaulttype::NOINIT.
| 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.
| 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.
| 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.
| 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.
| Vec3r1 sofa::gpu::cuda::Vec3r1< Real >::operator+ | ( | const Vec3r1< Real > & | v | ) | const [inline] |
Vector addition.
Definition at line 840 of file CudaTypes.h.
References sofa::helper::fixed_array< real, N >::elems, sofa::gpu::cuda::Vec3r1< Real >::N, and sofa::defaulttype::NOINIT.
| Vec3r1 sofa::gpu::cuda::Vec3r1< Real >::operator+ | ( | const Vec< N, real2 > & | v | ) | const [inline] |
Vector addition.
Reimplemented from sofa::defaulttype::Vec< 3, Real >.
Definition at line 831 of file CudaTypes.h.
References sofa::helper::fixed_array< real, N >::elems, sofa::gpu::cuda::Vec3r1< Real >::N, and sofa::defaulttype::NOINIT.
| 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.
| 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.
| Vec3r1 sofa::gpu::cuda::Vec3r1< Real >::operator- | ( | ) | const [inline] |
Vector negation.
Reimplemented from sofa::defaulttype::Vec< 3, Real >.
Definition at line 898 of file CudaTypes.h.
References sofa::helper::fixed_array< real, N >::elems, sofa::gpu::cuda::Vec3r1< Real >::N, and sofa::defaulttype::NOINIT.
| Vec3r1 sofa::gpu::cuda::Vec3r1< Real >::operator- | ( | const Vec3r1< Real > & | v | ) | const [inline] |
Vector subtraction.
Definition at line 874 of file CudaTypes.h.
References sofa::helper::fixed_array< real, N >::elems, sofa::gpu::cuda::Vec3r1< Real >::N, and sofa::defaulttype::NOINIT.
| Vec3r1 sofa::gpu::cuda::Vec3r1< Real >::operator- | ( | const Vec< N, real2 > & | v | ) | const [inline] |
Vector subtraction.
Reimplemented from sofa::defaulttype::Vec< 3, Real >.
Definition at line 865 of file CudaTypes.h.
References sofa::helper::fixed_array< real, N >::elems, sofa::gpu::cuda::Vec3r1< Real >::N, and sofa::defaulttype::NOINIT.
| 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.
| 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.
| Vec3r1 sofa::gpu::cuda::Vec3r1< Real >::operator/ | ( | real2 | f | ) | const [inline] |
Division by a scalar f.
Reimplemented from sofa::defaulttype::Vec< 3, Real >.
Definition at line 775 of file CudaTypes.h.
References sofa::helper::fixed_array< real, N >::elems, sofa::gpu::cuda::Vec3r1< Real >::N, and sofa::defaulttype::NOINIT.
| 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.
float sofa::gpu::cuda::Vec3r1< Real >::dummy [protected] |
Definition at line 917 of file CudaTypes.h.
1.5.7.1