rtc::Vec3< T > Class Template Reference
#include <rtcVec3.h>
List of all members.
Public Member Functions |
Vec3< T > | cross (const Vec3< T > &v) const |
Vec3< T > | operator% (const Vec3< T > &v) const |
void | set (const T x0, const T x1, const T x2) |
template<class U > |
| Vec3 (const Vec< U, 3 > &v) |
| Vec3 (const Vec< T, 3 > &v) |
| Vec3 (const T x0, const T x1, const T x2) |
| Vec3 (const T a) |
| Vec3 (const T *d) |
| Vec3 () |
Detailed Description
template<class T>
class rtc::Vec3< T >
A 3-D vector.
Definition at line 38 of file rtcVec3.h.
Constructor & Destructor Documentation
Ctor that doesn't initialize.
Definition at line 84 of file rtcVec3.h.
Ctor that intalizes from array.
Definition at line 89 of file rtcVec3.h.
Ctor that intalizes all elements from a scalar.
Definition at line 94 of file rtcVec3.h.
template<class T>
rtc::Vec3< T >::Vec3 |
( |
const T |
x0, |
|
|
const T |
x1, |
|
|
const T |
x2 | |
|
) |
| | [inline] |
Ctor that initializes vector with given values.
Definition at line 99 of file rtcVec3.h.
template<class T >
template<class U >
Casting Ctor that initializes an Vec3<T> with a Vec<U,3>.
Definition at line 113 of file rtcVec3.h.
Member Function Documentation
Calculate the cross product.
- Parameters:
-
- Returns:
- the cross product: "this" cross "v"
Definition at line 132 of file rtcVec3.h.
cross product: only defined for Vec3* as specialization
- See also:
- Vec3::cross
Definition at line 141 of file rtcVec3.h.
template<class T>
void rtc::Vec3< T >::set |
( |
const T |
x0, |
|
|
const T |
x1, |
|
|
const T |
x2 | |
|
) |
| | [inline] |
The documentation for this class was generated from the following file: