Revision: 51771 http://brlcad.svn.sourceforge.net/brlcad/?rev=51771&view=rev Author: crdueck Date: 2012-08-06 20:22:00 +0000 (Mon, 06 Aug 2012) Log Message: ----------- update HEQUAL and V2EQUAL to use the HNEAR_EQUAL and V2NEAR_EQUAL macros respectively
Modified Paths: -------------- brlcad/trunk/include/vmath.h Modified: brlcad/trunk/include/vmath.h =================================================================== --- brlcad/trunk/include/vmath.h 2012-08-06 19:57:33 UTC (rev 51770) +++ brlcad/trunk/include/vmath.h 2012-08-06 20:22:00 UTC (rev 51771) @@ -402,16 +402,16 @@ #define VEQUAL(_a, _b) VNEAR_EQUAL((_a), (_b), SMALL_FASTF) /** - * @brief Compare two vectors for EXACT equality. Use carefully. - * Version for degree 2 vectors. FIXME: no such thing as exact. + * @brief Return truthfully whether two 2D vectors are equal within + * a minimum representation tolerance. */ -#define V2EQUAL(a, b) ((a)[X]==(b)[X] && (a)[Y]==(b)[Y]) +#define V2EQUAL(_a, _b) V2NEAR_EQUAL((_a), (_b), SMALL_FASTF) /** - * @brief Compare two vectors for EXACT equality. Use carefully. - * Version for degree 4 vectors. FIXME: no such thing as exact. + * @brief Return truthfully whether two higher degree vectors are + * equal within a minimum representation tolerance. */ -#define HEQUAL(a, b) ((a)[X]==(b)[X] && (a)[Y]==(b)[Y] && (a)[Z]==(b)[Z] && (a)[W]==(b)[W]) +#define HEQUAL(_a, _b) HNEAR_EQUAL((_a), (_b), SMALL_FASTF) /** This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ BRL-CAD Source Commits mailing list brlcad-commits@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/brlcad-commits