head     1.1;
branch   ;
access   ;
symbols  ;
locks    ; strict;
comment  @// @;


1.1
date     92.07.29.23.42.17;  author fischer;  state Exp;
branches ;
next     ;


desc
@Quick check for testing some Point arithmetic.
@



1.1
log
@Initial revision
@
text
@// Emacs: -*- C++ -*-

static char rcsid[] = "$Id$";

//
// $Log$
// 
// 

#include <IntPoint.h>
#include <FloatPoint.h>

int main(int argc, char**argv)
{
    IntPoint	ip(0, 1, -2, -1), iq(3, 2, 1, 0);
    FloatPoint	fp(0.0, 0.1, -0.2, -0.1), fq(0.3, 0.2, 0.1, 0.0);
    
    IA::exit_on_throw = 0;
    
    cout << "ip: " << ip << "\n";
    cout << "iq: " << iq << "\n";
    cout << "fp: " << fp << "\n";
    cout << "fq: " << fq << "\n";

    cout << "ip+=1: " << (ip+=1) << "\n";
    cout << "iq-=1: " << (iq-=1) << "\n";

    fp+=1.1;
    cout << "fp+=1.1: " << fp << "\n";
    fp-=1.1;
    cout << "fp-=1.1: " << fp << "\n";

    fp[0]=fp[3]+2.1;
    cout << "fp[0]=fp[3]+2.1: " << fp << "\n";

    cout << "ip+iq: "    <<    ip+iq  << "\n";
    cout << "fp+fq: "    <<    fp+fq  << "\n";
    cout << "fp+ip: "    <<    fp+ip  << "\n";
   
}
@
