head	1.6;
access
	monica
	thoth;
symbols
	r0_9:1.1
	Eglin_alpha_1:1.1;
locks; strict;
comment	@// @;


1.6
date	94.08.25.17.27.33;	author monica;	state Exp;
branches;
next	1.5;

1.5
date	94.08.17.03.12.53;	author monica;	state Exp;
branches;
next	1.4;

1.4
date	94.08.16.17.53.31;	author monica;	state Exp;
branches;
next	1.3;

1.3
date	94.08.16.12.30.32;	author monica;	state Exp;
branches;
next	1.2;

1.2
date	94.07.31.17.48.25;	author monica;	state Exp;
branches;
next	1.1;

1.1
date	92.11.18.21.43.29;	author reti;	state Exp;
branches;
next	;


desc
@@


1.6
log
@deleted "include "DblPS.h" as it is not needed
@
text
@static char rcsid []="$Id: test002.c,v 1.5 1994/08/17 03:12:53 monica Exp monica $";
//  $RCS$
 
//  $Log: test002.c,v $
// Revision 1.5  1994/08/17  03:12:53  monica
// added return 0 to main
//
// Revision 1.4  1994/08/16  17:53:31  monica
// changed comments
//
// Revision 1.3  1994/08/16  12:30:32  monica
// *** empty log message ***
//
// Revision 1.2  1994/07/31  17:48:25  monica
// changed IntPoint => IA_Point<int>
// changed FloatPoint => IA_Point<double>
// changed supremum, infimum => sup, inf
//
// Revision 1.1  1992/11/18  21:43:29  reti
// Initial revision
//


#include "test.h"

int main(int argc, char**argv)
{
    IA_Point<double>	p(10,20,30,40), r, P;
    IA_Point<int>    q(0), Q;
    int         a=11;
    float       b=2.1;
    void        prlp (char*, IA_Point<double>&);
    void        prlp (char*, IA_Point<int>&);
    void        prlc (char*, int&);
    
    IA::abort_on_throw = 0;
    cout << "Testing concat\n";

    prlp("p: ", p);    prlp("q: ", q);    prlp("r: ", r);
    cout << "int a: " << a << "\n";
    cout << "float b: " << b << "\n";
    
    P = concat(P, P);
    prlp("P = concat(P, P); ", P);
    
    P = concat(P, 1);
    prlp("P = concat(P, 1); ", P);
    
    P = concat(P, 1.2);
    prlp("P = concat(P, 1.2); ", P);
    
    P = concat(P, 2);
    prlp("P = concat(P, 2); ", P);
    
    P = concat(p, q);
    prlp("P = concat(p, q); ", P);
    P = concat(q, p);
    prlp("P = concat(q, p); ", P);

    Q = concat(q, q);
    prlp("Q = concat(q, q); ", Q);

    P = concat(q, r);
    prlp("P = concat(q, r); ", P);
    P = concat(r, q);
    prlp("P = concat(r, q); ", P);

    P = concat(p, a);
    prlp("P = concat(p, a); ", P);
    P = concat(a, p);
    prlp("P = concat(a, p); ", P);

    P = concat(p, b);
    prlp("P = concat(p, b); ", P);
    P = concat(b, p);
    prlp("P = concat(b, p); ", P);

    // Should throw
    
    P = concat(p, p);
    prlp("P = concat(p, p); ", P);

    
    for (int i = -1; i <= 1; i++) {
	P = (i); 
	cout << P << "\n";
	for (float j = -1; j <= 1; j++) {
	    P = concat(i, IA_Point<double>(j)); 
	    cout <<  P << "\n";
	    for (int k = -1; k <= 1; k++) {
		P = concat(i, concat(IA_Point<double>(j), IA_Point<int>(k)));
		cout << P << "\n";
		for (float l = -1; l <= 1; l++) {
		    P = concat(concat(i, IA_Point<double>(j)), concat(IA_Point<double>(k), l)); 
		    cout << P << "\n";
		}
	    }
	}
    }


return 0;

}

void
prlp (char *label, IA_Point<double>& p)
{
    cout << "IA_Point<double>: " << label << p <<  "\n";
}


void
prlp (char *label, IA_Point<int>& p)
{
    cout << "IA_Point<int>: " << label << p <<  "\n";
}


@


1.5
log
@added return 0 to main
@
text
@d1 1
a1 1
static char rcsid []="$Id: test002.c,v 1.4 1994/08/16 17:53:31 monica Exp monica $";
d5 3
a23 1
#include "DblPS.h"
@


1.4
log
@changed comments
@
text
@d1 1
a1 1
static char rcsid []="$Id: test002.c,v 1.3 1994/08/16 12:30:32 monica Exp monica $";
d5 3
d98 3
@


1.3
log
@*** empty log message ***
@
text
@d1 1
a1 1
static char rcsid []="$Id: test002.c,v 1.2 1994/07/31 17:48:25 monica Exp monica $";
d5 3
d32 1
@


1.2
log
@changed IntPoint => IA_Point<int>
changed FloatPoint => IA_Point<double>
changed supremum, infimum => sup, inf
@
text
@d1 1
a1 1
static char rcsid []="$Id: test046.c,v 1.1 1992/11/18 21:43:29 reti Exp monica $";
d4 6
a9 1
//  $Log: test046.c,v $
d15 2
a16 1
#include <DoublePointSet.h>
@


1.1
log
@Initial revision
@
text
@d1 1
a1 1
static char rcsid []="$Id$";
d4 4
a7 1
//  $Log:	test046.C,v $
d10 1
a10 1
#include <FloatPoint.h>
d14 2
a15 2
    FloatPoint	p(10,20,30,40), r, P;
    IntPoint    q(0), Q;
d18 2
a19 2
    void        prlp (char*, FloatPoint&);
    void        prlp (char*, IntPoint&);
d22 1
a22 1
    IA::exit_on_throw = 0;
d73 1
a73 1
	    P = concat(i, FloatPoint(j)); 
d76 1
a76 1
		P = concat(i, concat(FloatPoint(j), IntPoint(k)));
d79 1
a79 1
		    P = concat(concat(i, FloatPoint(j)), concat(FloatPoint(k), l)); 
d89 1
a89 1
prlp (char *label, FloatPoint& p)
d91 1
a91 1
    cout << "FloatPoint: " << label << p <<  "\n";
d96 1
a96 1
prlp (char *label, IntPoint& p)
d98 1
a98 1
    cout << "IntPoint: " << label << p <<  "\n";
@
