equal
deleted
inserted
replaced
39 |
39 |
40 ///Default constructor: both coordinates become 0 |
40 ///Default constructor: both coordinates become 0 |
41 xy() : x(0), y(0) {} |
41 xy() : x(0), y(0) {} |
42 |
42 |
43 ///Constructing the instance from coordinates |
43 ///Constructing the instance from coordinates |
44 xy(T a, T b) : x(a), y(a) { } |
44 xy(T a, T b) : x(a), y(b) { } |
45 |
45 |
46 |
46 |
47 ///Gives back the square of the norm of the vector |
47 ///Gives back the square of the norm of the vector |
48 T normSquare(){ |
48 T normSquare(){ |
49 return x*x+y*y; |
49 return x*x+y*y; |