diff options
Diffstat (limited to 'lib/vector.c')
-rw-r--r-- | lib/vector.c | 39 |
1 files changed, 20 insertions, 19 deletions
diff --git a/lib/vector.c b/lib/vector.c index 6f7abf5..0a30532 100644 --- a/lib/vector.c +++ b/lib/vector.c @@ -1,20 +1,21 @@ -/* vector.c: vector/point operations. +# vector.c: vector/point operations. +# +# Copyright (C) 1992, 2011 Free Software Foundation, Inc. +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see <http://www.gnu.org/licenses/>. +# -Copyright (C) 1992, 2011 Free Software Foundation, Inc. - -This program is free software; you can redistribute it and/or modify -it under the terms of the GNU General Public License as published by -the Free Software Foundation; either version 3, or (at your option) -any later version. - -This program is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -GNU General Public License for more details. - -You should have received a copy of the GNU General Public License -along with this program; if not, write to the Free Software -Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ #include "config.h" @@ -49,7 +50,7 @@ vector_to_point (const vector_type v) } - + const real magnitude (const vector_type v) { @@ -160,7 +161,7 @@ Vabs (const vector_type v) } - + /* Operations on points. */ /* This is a macro now. */ @@ -202,7 +203,7 @@ Psubtract (const real_coordinate_type c1, const real_coordinate_type c2) } - + /* Operations on integer points. */ const vector_type |