Parent Directory | Revision Log | Patch
revision 1.5 by tjl, Tue Apr 1 11:03:54 2003 UTC | revision 1.6 by tjl, Tue Apr 1 15:06:52 2003 UTC | |
---|---|---|
# | Line 55 namespace Vec23 { | Line 55 namespace Vec23 { |
55 | */ | */ |
56 | template<class F> | template<class F> |
57 | Vector(const Vector3<F> &v) : x(v.x), y(v.y) { } | Vector(const Vector3<F> &v) : x(v.x), y(v.y) { } |
58 | ||
59 | /** Create from an array. | |
60 | */ | |
61 | Vector(T *v) : x(v[0]), y(v[1]) { } | |
62 | /** Multiplication by scalar. | /** Multiplication by scalar. |
63 | */ | */ |
64 | Vector operator*(const double &s) const { return Vector(s * x, s * y); } | Vector operator*(const double &s) const { return Vector(s * x, s * y); } |
|
savannah-hackers-public@gnu.org | ViewVC Help |
Powered by ViewVC 1.1.26 |