How should i know that it moves down not up !? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How should i know that it moves down not up !?

16th Nov 2016, 1:59 AM
Lmis Kmal
Lmis Kmal - avatar
3 Answers
+ 4
If you're reffering to x and y coordinates in a computer, then here's what I've got: If you have a screen infront of you, the upper left corner is (0, 0). The bottom of the screen is your vertical resolution, which in a high-defininition monitor is 1080 pixels. The right of your screen is the horizontal resolution, which is 1920 pixels in high-definition. So, if you want to move down the screen, you move from (0, 0) towards (0, 1080). Id est, you increase your y value.
16th Nov 2016, 2:58 AM
Keto Z
Keto Z - avatar
0
it should actually be x and -y co-ordinates (in mathematics)
16th Nov 2016, 8:55 AM
Core i9
Core i9 - avatar
0
check the JavaScript file of my "multi pointed star" code
16th Nov 2016, 8:57 AM
Core i9
Core i9 - avatar