POV-Ray : Newsgroups : povray.advanced-users : Divide by zero : Re: Divide by zero Server Time
28 Sep 2024 18:54:05 EDT (-0400)
  Re: Divide by zero  
From: stbenge
Date: 19 Jul 2010 14:19:13
Message: <4c449721@news.povray.org>
Le_Forgeron wrote:
> Why do you need the sloperate of your 2D line ?
> why not computing the angle of the slope instead, using atan2 ?
> With the angle instead of the slope, no more issue with vertical line.
> 
> (atan2() result would be in radian, just in case you would be wondering)

It's for a 2D line intersection macro, and the way I learned how to 
perform that makes use of classic Coordinate Geometry.


Post a reply to this message

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