head	1.2;
access
	monica
	thoth;
symbols;
locks
	monica:1.2; strict;
comment	@// @;


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

1.1
date	94.09.14.19.16.00;	author monica;	state Exp;
branches;
next	;


desc
@@


1.2
log
@added reference to log for rcs
@
text
@// $Log$
// Emacs: -*- C++ -*-

// pointset_example.04.c          Float point set example

#include "DblPS.h"

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

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
}
@


1.1
log
@Initial revision
@
text
@d1 1
@
