233 |
return r; |
return r; |
234 |
} |
} |
235 |
|
|
|
inline V3 make_v3(double x, double y, double z) |
|
|
{ |
|
|
V3 r; |
|
|
r[0] = x; |
|
|
r[1] = y; |
|
|
r[2] = z; |
|
|
return r; |
|
|
} |
|
236 |
std::ostream& operator<<(std::ostream& os, const V3 & v); |
std::ostream& operator<<(std::ostream& os, const V3 & v); |
237 |
|
|
238 |
class V2 : public Vector<double, 2> { |
class V2 : public Vector<double, 2> { |
251 |
} |
} |
252 |
}; |
}; |
253 |
|
|
|
inline V2 make_v2(double x, double y) |
|
|
{ |
|
|
V2 r; |
|
|
r[0] = x; |
|
|
r[1] =y; |
|
|
return r; |
|
|
} |
|
|
|
|
254 |
std::ostream& operator<<(std::ostream& os, const V2 & v); |
std::ostream& operator<<(std::ostream& os, const V2 & v); |
255 |
} |
} |
256 |
#endif |
#endif |