Board Logo
« rows and cols vrs x and y »

Welcome Guest. Please Login or Register.
Oct 17th, 2017, 3:24pm


Conforums Terms of Service | Membership Rules | Home | Search | Recent Posts | Notification | Format Your Message | Installation FAQ

Please use the forums Search feature before asking.
Please post code using the code box described in Format Your Messages.
This will keep indentation, separate it better form the message and prevent gibberish.
If the code is too long for one post or additional files are needed, upload a ZIP archive to the Just BASIC Files Archive Site.

« Previous Topic | Next Topic »
Pages: 1  Notify Send Topic Print
 thread  Author  Topic: rows and cols vrs x and y  (Read 173 times)
tsh73
JB-Supporter


member is offline

Avatar




PM

Gender: Male
Posts: 3558
xx Re: rows and cols vrs x and y
« Reply #11 on: Oct 6th, 2017, 12:58pm »

Code:
It's generally thought that the positive-downwards convention stems from the way Cathode Ray Tube TV screens are (or were) scanned,  

I would vote for printing origin. With it, Y doing down makes perfect sense.

I confess in my early BASIC days I had hard time deciding
(row, column)
or
(column, row)
(and even "Y goes upward or downward")
Because obviously from mathematical point of view it's the same...
So I had to decide it for each program.
And all was fine until I mess it up in the middle of a program ;)
Now I just got used to (row, column), from top to bottom - but it's just convenience.
EDIT I don't have to think about it any more ;)

Luckily I happen to remember that LB sort bug.
Since I mainly use JB I don't use SORT often.
« Last Edit: Oct 6th, 2017, 1:00pm by tsh73 » User IP Logged

Q: "And if I took your codes and compile them, and sell them for a profit"?
A: Go ahead. I had my share of good then I coded it for fun, if you can make better use of it - please do.
(enjoying JB 1.01 on WinXP, netbook and desktop)
Rod
Administrator
ImageImageImageImageImage


member is offline

Avatar

Graphics = Goosebumps!


PM

Gender: Male
Posts: 3100
xx Re: rows and cols vrs x and y
« Reply #12 on: Oct 6th, 2017, 12:58pm »

Especially as it would have been just as simple to scan up as down! Perhaps it all went wrong when John Logie Baird spun his disc clockwise and set the screen position on the down stroke. He should have spun it anti clockwise.

Edit to add, or indeed spun it clockwise and set the screen position on the up stroke! skinning cats springs to mind.
« Last Edit: Oct 6th, 2017, 4:15pm by Rod » User IP Logged

rtr
Member in Training
ImageImage


member is offline

Avatar




PM


Posts: 29
xx Re: rows and cols vrs x and y
« Reply #13 on: Oct 6th, 2017, 5:28pm »

on Oct 6th, 2017, 12:58pm, tsh73 wrote:
I would vote for printing origin. With it, Y doing down makes perfect sense.

So in countries that use Arabic or Hebrew writing, for example (where the printing origin is top-right), you would have positive Y going downwards but positive X going right-to-left? laugh

Richard.
User IP Logged

Pages: 1  Notify Send Topic Print
« Previous Topic | Next Topic »

Conforums Terms of Service | Membership Rules | Home | Search | Recent Posts | Notification | Format Your Message | Installation FAQ

Donate $6.99 for 50,000 Ad-Free Pageviews!

| |

This forum powered for FREE by Conforums ©
Sign up for your own Free Message Board today!
Terms of Service | Privacy Policy | Conforums Support | Parental Controls