src/include/xy.h
changeset 533 04eb0d9022c8
parent 491 4804c967543d
equal deleted inserted replaced
2:a46e59df5d41 3:904972a5ee80
    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;