Tk Library Source Code

View Ticket
Login
Ticket UUID: ffcd8611b81f408cd58c1343fd104c9756e4d7cb
Title: direction and octant delete the minus sign lead to diagram display bugs
Type: Bug Version:
Submitter: anonymous Created on: 2021-06-16 02:17:53
Subsystem: tklib :: diagrams Assigned To: nobody
Priority: 5 Medium Severity: Minor
Status: Open Last Modified: 2026-11-15 23:30:14
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
User Comments: serhiy.storchaka added on 2026-11-15 23:30:14:

This is the same issue as [e9c4eeae1f]. Proposed fix in branch diagrams-screen-directions.