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

后端 未结 10 807
我寻月下人不归
我寻月下人不归 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:08

    It also has the benefit of being similar to 2-D arrays in programs, where [0][0] refers to the upper-left element.

提交回复
热议问题