POV-Ray : Newsgroups : povray.general : How to check if three points are in line? : Re: How to check if three points are in line? Server Time
24 Apr 2024 19:38:34 EDT (-0400)
  Re: How to check if three points are in line?  
From: Bald Eagle
Date: 5 Jun 2020 17:45:05
Message: <web.5edabc82e3705a85fb0b41570@news.povray.org>
I'd say try utilizing this:
https://en.wikipedia.org/wiki/Distance_from_a_point_to_a_line#Line_defined_by_two_points

and checking if it's <= some small value (0.000001)

Otherwise maybe investigate what they have in the Graphics Gems series.



Did you see:

http://news.povray.org/povray.general/message/%3Cweb.5e97c81e9447013fb0b41570%40news.povray.org%3E/#%3Cweb.5e97c81e9447
013fb0b41570%40news.povray.org%3E

http://news.povray.org/povray.binaries.images/message/%3Cweb.5e97c744fd34edcfb0b41570%40news.povray.org%3E/#%3Cweb.5e97
c744fd34edcfb0b41570%40news.povray.org%3E

?


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.