59 |
|
data_[1] = y; |
60 |
|
data_[2] = z; |
61 |
|
} |
62 |
+ |
|
63 |
+ |
/** Constructs and initializes from an array*/ |
64 |
+ |
inline Vector3(double* array) : Vector<Real, 3>(array) {} |
65 |
|
|
66 |
|
inline Vector3(const Vector<Real, 3>& v) : Vector<Real, 3>(v) {} |
67 |
|
|
126 |
|
|
127 |
|
return result; |
128 |
|
} |
129 |
< |
|
129 |
> |
|
130 |
> |
typedef Vector3<int> Vector3i; |
131 |
> |
|
132 |
|
typedef Vector3<double> Vector3d; |
133 |
+ |
|
134 |
+ |
const Vector3d V3Zero(0.0 , 0.0, 0.0); |
135 |
+ |
const Vector3d V3X( 1.0, 0.0, 0.0 ) ; |
136 |
+ |
const Vector3d V3Y( 0.0, 1.0, 0.0 ) ; |
137 |
+ |
const Vector3d V3Z ( 0.0, 0.0, 1.0 ) ; |
138 |
|
|
139 |
|
} |
140 |
|
|