天天看点

空间坐标转换

空间坐标转换[Transformation of Coordinate Spaces]

    • 文章出处
    • 坐标空间的定义
    • 四种空间类型
    • 生词表
    • 参考

文章出处

点击此处查阅MSDN文章

坐标空间的定义

A coordinate space is a planar space based on the Cartesian coordinate system. This system provides a means of specifying the location of each point on a plane. It requires two axes that are perpendicular and equal in length. The following illustration shows a coordinate space.

坐标空间是基于笛卡尔坐标系统的平面空间.坐标空间提供了一套定义平面空间中每一个点位置的方法.这种定义平面空间的方法要求两个坐标轴互相垂直,并且两个坐标轴的长度一致(并不一定单位长度一致).下面的图示展示了坐标空间的一个类型.

illustration of a coordinate space, showing the origin, both axes, and the max and min values of each axis.

下图坐标空间图示,标注了原点((0,0)点),两个坐标轴:X轴,Y轴.由于X-Y轴的最大值和最小值都一样,所以两个坐标轴的长度都是一样的.

空间坐标转换

四种空间类型

The system supports four coordinate spaces, as described in the following table.

(这句话和上图没有关系——译者注)坐标空间(WINDOWS使用笛卡尔坐标系自定义的一种几何空间)有四种类型,四种符合笛卡尔坐标系的坐标空间在下表一一例举.

Coordinate space Description 中文解释
world Used optionally as the starting coordinate space for graphics transformations. It allows scaling, translation, rotation, shearing, and reflection. World space measures 2^32 units high by 2^32 units wide. 可以任意选择图形转换的坐标空间起始点世界坐标可以放大缩小(比如:坐标单位长度),转换(比如:从X-Y坐标转换成极坐标),旋转(这种形式比较少见,比如把X-Y轴顺时针旋转π/6),剪切(比如:只留X-Y坐标的第一象限),求逆(把X-Y坐标轴方向改变,WIN32中就有相应的API).世界(坐标)空间(是对现实世界的反映),无论横坐标还是纵坐标,(坐标)空间可细分或放大2^32 倍单位长度.
page page Used either as the next space after world space or as the starting space for graphics transformations. It sets the mapping mode. Page space also measures 2^32 units high by 2^32 units wide. 页面坐标空间可以看成一个后继的世界坐标空间(页面坐标空间个数与世界坐标空间个为数一比一)也可以看作世界坐标空间经过图形变幻(图形变幻是指分割,缩放,转换,旋转,剪切,求逆等操作将页面坐标空间个数与世界坐标空间个数比不为一比一).世界坐标空间分与页面坐标空间使用映射模式转换.页面(坐标)空间(是对介质容量的考查),无论横坐标还是纵坐标,(坐标)空间可细分或放大232 倍单位长度(介质也是现实世界的一部分).
device Used as the next space after page space. It only allows translation, which ensures the origin of the device space maps to the proper location in physical device space. Device space measures 2^27 units high by 2^27 units wide. 设备坐标空间(页面空间在显卡中逻辑存储格式)基于页面坐标空间。设备坐标空间只允许转换.页面坐标空间到设备坐标空间的转换需要衡量设备载荷容量(显存大小)以对应合适的物理设备空间.
physical device The final (output) space for graphics transformations. It usually refers to the client area of the application window; however, it can also include the entire desktop, a complete window (including the frame, title bar, and menu bar), or a page of printer or plotter paper, depending on the function that obtained the handle to the device context. Physical device dimensions vary according to the dimensions set by the display, printer, or plotter technology. 物理设备坐标空间.图形转换最终结果所在的坐标空间(进行计算机编程的坐标空间).物理设备坐标空间通常应用于视窗应用程序的客户区(客户区一般不包括标题栏,也不包括上、下、左、右四个页边空白).物理设备坐标空间也可将范围扩大致整个桌面(窗口),整个视窗窗口(包括图画框架,标题栏,菜单栏)(一般来说应用程序的图画框架包括客户区和上,下,左,右四个页边空白.应用程序的标题栏在应用程序框架之上,应用程序的菜单栏在标题栏之下,应用程序框架之上.而视窗窗口(仅包框桌面窗口和桌面窗口下面的菜单栏).物理设备坐标空间也适用于打印机和扫描仪.只要适用于物理设备坐标空间的窗口在(编程时)都依赖设备上下文的句柄.诸如显示器,打印机,扫描仪等电子仪器等物理设备的单位范围改变依据已经设定单位范围.

生词表

序号 单词 音标 词性 中文解释
1. coordinate adj. [数]坐标
2. planar [ˈpleɪnər] adj. 平面的;
3. a means of phr. 一种手段
4. plane n. 平面
5. axis n. 将图平面一分为二的线,轴,数轴,坐标轴
6. perpendicular adj. 垂直的; 成直角的; 垂直式的
7. shear [ʃɪər] vi. 剪切,修剪,穿越
8. either as … or phr. 可以当作……也可以当作
9. origin n. 起源,源头.引申为二进制存储的偏移起始位
10. plotter [ˈplɒtər] n. (计算机)绘图仪,描绘器,阴谋家; 秘密策划者
11. vary v. (大小、形状等)相异,不同,改变,变更

参考

  1. 百度翻译
  2. 360翻译
  3. iCIBA词霸

继续阅读