#8 avoid division by zero

closed-accepted
nobody
None
5
2010-01-29
2010-01-28
Lars
No

Hi,
the function "point_inside" raises a DivideByZero exception for triangles, that are _almost_ invalid (e.g. three points in a line).

The attached patch replaces the division with alternative operations. The output of the function is not changed.

regards,
Lars

Discussion

  • Lars

    Lars - 2010-01-28

    replace division with equivalent operations

     
  • Lode Leroy

    Lode Leroy - 2010-01-29

    thanks for catching this one.

     
  • Lode Leroy

    Lode Leroy - 2010-01-29
    • status: open --> closed-accepted
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks