Tcl Library Source Code

View Ticket
Login
Ticket UUID: de2be80fd27630f85c25c238fe26c89a3dfe9407
Title: direction and octant delete the minus sign lead to diagram display bugs
Type: Bug Version:
Submitter: anonymous Created on: 2021-06-16 01:02:55
Subsystem: math :: geometry Assigned To: arjenmarkus
Priority: 7 High Severity: Important
Status: Open Last Modified: 2021-09-18 08:30:00
Resolution: None Closed By: nobody
    Closed on:
Description:
I post a message in c.l.t: 
the changes of ::math::geometry::direction and octant(delete the minus sign)  of Tcllib lead to the package diagram of Tklib have bugs, because diagram's y direction is down, not up 
from Arjen Markus:
 Oh, good heavens! That is the annoying difference between the screen definition and the mathematical definition. I will look into this.

from [email protected]:

The math::geometry man page does not specify the coordinate space very well. Angles are specifie in ::math::geometry::direction, but coordinate orientation is not.

Perhaps a note in the manual page Description section would prevent future confusion:

X coordinates increase to the right
Y coordinates increase down
Angles increase counter clockwise, with 0 pointing right

These coordinates and angles are consistent with Tk canvas

Dave B