Dave Blandston <nomail@nomail> wrote:
> #local Theta = degrees (atan (Point2_Macro.y / Point2_Macro.x));
> #local R1 = R2 * sin (radians (Angle2_Macro)) / sin (radians (Angle3_Macro));
You have potential divisions by zero in these two lines, even for completely
valid parameters passed to the macro.
The intersection point of two 2D lines is a basic geometrical problem which
can be solved without having to resort to trigonometry, and this solution
avoids divisions by zero. Try googling for "intersection of two lines".
--
- Warp
Post a reply to this message
|