BoxFilter.cpp
Go to the documentation of this file.00001 /**<!--------------------------------------------------------------------> 00002 @file BoxFilter.cpp 00003 @author Travis Fischer (fisch0920@gmail.com) 00004 @author Matthew Jacobs (jacobs.mh@gmail.com) 00005 @date Fall 2008 00006 00007 @brief 00008 2D symmetric box filter (unweighted area filtering) 00009 <!-------------------------------------------------------------------->**/ 00010 00011 #include "BoxFilter.h" 00012 00013 real_t BoxFilter::evaluate(const Vector2 &pt) { 00014 return (2.0 * sqrt(pt[0] * pt[0] + pt[1] * pt[1]) < m_support); 00015 } 00016
Generated on 28 Feb 2009 for Milton by
1.5.6