左撇子坐标系的历史原因 [英] Historic reasons for Left-Handed Coordinate System

查看:138
本文介绍了左撇子坐标系的历史原因的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我觉得(0,0)映射到屏幕的左上角有点不直观。在Java Swing中使用左手坐标系有历史原因吗?

I find it a bit non-intuitive that the (0,0) maps to the left-top of the screen. Is there a historic reason for using a left-handed coordinate system in Java Swing?

虽然将其映射到右手系统并不太困难,但我很好奇知道左撇子系统是否有任何隐藏的好处。

While mapping this to a right-handed system is not too difficult, I'm curious to know if there is any hidden benefit in having a left-handed system.

推荐答案

根据这篇文章,因为这就是电视机的一贯方式(其中没改变,BTW)。所以这个早期的设计决定似乎今天仍然有影响。

According to this article that's simply because that's the way it always was with television sets (which hasn't changed, BTW). So it seems that this early design decision still has an impact today.

早期的家用电脑经常连接到电视,所以他们自然会使用这个坐标系。我想很多显示器的工作原理相同,因为制造商可以部分回收电子/逻辑。而且,由于这是程序员使用的自然坐标系统(记住,当时我们不得不在更低的层次上访问视频系统),因为大多数人都习惯了它,所以它就会停滞不前。

Early home computers often were connected to the TV, so naturally they used this coordinate system. I guess a lot of monitors worked the same way simply because the manufacturers could partly recycle electronics/logic. And since this was then the "natural" coordinate system which programmers used (remember, we had to access the video system on a much lower level back then) it simply stuck as most people were used to it.

此模型的例外是PostScript及其后续版本PDF。他们对纸张进行建模,因此不需要使用屏幕的坐标系来提高效率。他们在左下角使用(0,0),就像数学家通常那样。 NeXT使用了一个名为Display PostScript的视频系统,它是PostScript的扩展,用于在屏幕上绘图,因此在左下角使用PostScripts系统(0,0)。今天的Mac OS X衍生自NeXT,因此也使用这个系统。在iOS上,Apple工程师决定将系统转换为更常见的模型,左上角为(0,0),以便开发人员更容易从其他系统迁移。

The exception to this model is PostScript and it successor, PDF. They model a paper and therefor weren't tied to use the screen's coordinate system for efficiency. They use (0,0) in the lower left, like mathematicians usually do. The NeXT used a video system called Display PostScript which is an extension to PostScript for drawing on-screen and thus used PostScripts system with (0,0) in the lower left. Todays Mac OS X derived from NeXT and thus also uses this system. On iOS, the Apple engineers decided to flip the system to the more common model with (0,0) in the upper left to make it easier for developers migrating from others systems.

这篇关于左撇子坐标系的历史原因的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆