head	1.3;
access;
symbols;
locks; strict;
comment	@// @;


1.3
date	94.10.11.00.27.28;	author rjj;	state Exp;
branches;
next	1.2;

1.2
date	94.09.02.01.47.50;	author rjj;	state Exp;
branches;
next	1.1;

1.1
date	94.09.01.00.12.56;	author rjj;	state Exp;
branches;
next	;


desc
@Placing under RCS.  This should be the source corresponding to UM 1.0
@


1.3
log
@Modified to use 'return 0;' rather than 'exit(0);'.
@
text
@// pointset_example.04.c          Float point set example

#include "DblPS.h"

int radius5disk(const IA_Point<double> &fp) {
    return fp.enorm() <= 5;
}

int main() {
    IA_Set<IA_Point<double> >
	fps1( 2,            // dim. of the points in this set
	      radius5disk); // pointer to predicate function
    			    // defining this set

    cout << fps1.contains(IA_Point<double>(0.0,0.0)) << "\n";  // true
    cout << fps1.contains(IA_Point<double>(5.0,0.0)) << "\n";  // true
    cout << fps1.contains(IA_Point<double>(5.0,1.0)) << "\n";  // false

    return 0;
}
@


1.2
log
@Modified to be iac++ v2.0 compliant.
@
text
@a2 1
#include <stdlib.h>
d19 1
a19 1
    exit( 0 );
@


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

d3 2
a4 1
#include "FloatPointSet.h"
d10 1
a10 1
main() {
d19 2
@
