Why Java 2D origin is at the top left corner?

后端 未结 10 802
我寻月下人不归
我寻月下人不归 2021-01-04 23:19

I\'m not complaining, just wonder. Why Java use top left point of the drawing surface as origin? I assume more natural is to choose left bottom corner as origin and increase

10条回答
  •  囚心锁ツ
    2021-01-05 00:07

    If you go back far enough, like 1981, you can find some exceptions!
    http://central.kaserver5.org/Kasoft/Typeset/BBC/Ch08.html

    "Imagine a graphics window which has its edges a, b, c and d 'graphics units' away from the bottom left hand corner of the screen (which is always the starting point for graphics)."

提交回复
热议问题