# | Line 59 | Line 59 | namespace oopse { | |
---|---|---|
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 | ||
# | Line 125 | Line 128 | namespace oopse { | |
128 | } | |
129 | ||
130 | typedef Vector3<double> Vector3d; | |
131 | + | |
132 | + | const Vector3d V3Zero(0.0 , 0.0, 0.0); |
133 | + | const Vector3d V3X( 1.0, 0.0, 0.0 ) ; |
134 | + | const Vector3d V3Y( 0.0, 1.0, 0.0 ) ; |
135 | + | const Vector3d V3Z ( 0.0, 0.0, 1.0 ) ; |
136 | ||
137 | } | |
138 |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |