Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ Library : Other (not classified elsewhere) » [Possible bug] Geometry - Point
[Possible bug] Geometry - Point [message #7032] Fri, 08 December 2006 11:15 Go to previous message
artekk is currently offline  artekk
Messages: 1
Registered: December 2006
Junior Member
Hello

I suggest operator == and != should look something like this:

bool operator==( const Pointf3 &p )const
{
return fabs(x-p.x)<=EPSILON &&
fabs(y-p.y)<=EPSILON &&
fabs(z-p.z)<=EPSILON;
}

because in almost cases original code isn't accurate for veryvery small (EPSILON) distances between points.

artek

 
Read Message
Read Message
Read Message
Previous Topic: NFormat and crash of the program
Next Topic: About the sort of the GridCtrl
Goto Forum:
  


Current Time: Wed Jun 25 19:03:36 CEST 2025

Total time taken to generate the page: 0.03987 seconds