2
/******************************************************************************
5
* COPYRIGHT : (C) 2003 Joris van der Hoeven
6
*******************************************************************************
7
* This software falls under the GNU general public license and comes WITHOUT
8
* ANY WARRANTY WHATSOEVER. See the file $TEXMACS_PATH/LICENSE for more details.
9
* If you don't have this file, write to the Free Software Foundation, Inc.,
10
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
11
******************************************************************************/
14
#include "math_util.hpp"
17
operator + (point p1, point p2) {
18
int i, n= min (N(p1), N(p2));
26
operator - (point p1, point p2) {
27
int i, n= min (N(p1), N(p2));
35
operator * (double x, point p) {
44
operator / (point p, double x) {
54
if (!is_tuple (t)) return point ();
59
p[i]= as_double (t[i]);
69
t[i]= as_string (p[i]);
74
operator * (point p1, point p2) {
75
int i, n= min (N(p1), N(p2));