日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

各坐标的转换:

發布時間:2024/1/18 编程问答 22 豆豆
生活随笔 收集整理的這篇文章主要介紹了 各坐标的转换: 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
各坐標的轉換: 1.WorldToScreenPoint:

Transforms position from world space into screen space.

從世界空間到屏幕空間變換位置。

Screenspace is defined in pixels. The bottom-left of the screen is (0,0); the right-top is (pixelWidth,pixelHeight). The z position is in world units from the camera.

屏幕空間以像素定義,屏幕左下為0,0,右上是(pixelWidth,pixelHeight),Z的位置是以世界單位衡量的到相機的距離。


2.ScreenToWorldPoint:

Transforms position from screen space into world space.

從屏幕空間到世界空間的變化位置。

Screenspace is defined in pixels. The bottom-left of the screen is (0,0); the right-top is (pixelWidth,pixelHeight). The z position is in world units from the camera.

屏幕空間以像素定義。屏幕的左下為(0,0);右上是(pixelWidth,pixelHeight),Z的位置是以世界單位衡量的到相機的距離。


3.WorldToViewportPoint:

Transforms position from world space into viewport space.

從世界空間到視窗空間的變換位置。

Viewport space is normalized and relative to the camera. The bottom-left of the camera is (0,0); the top-right is (1,1). The z position is in world units from the camera.

視口空間是歸一化的并相對于相機的。相機的左下為(0,0);右上是(1,1),Z的位置是以世界單位衡量的到相機的距離。


4.ViewportToWorldPoint:

Transforms position from viewport space into world space.

從視窗空間到世界空間的變換位置。

Viewport space is normalized and relative to the camera. The bottom-left of the camera is (0,0); the top-right is (1,1). The z position is in world units from the camera.

視口空間是歸一化的并相對于相機的,相機的左下為(0,0);右上是(1,1);Z的位置是以世界單位衡量的到相機的距離。

Note that it transforms a x-y screen position, into a x-y-z position in 3D space.

請注意它是變換一個x-y屏幕位置到一個3D空間的x-y-z位置。

You provide the function with a vector where the x-y components of the vector are the screen coordinates and the z component is the distance of the resulting plane from the camera.

這個函數帶有在屏幕坐標的x-y組件向量,并且z組件是在從相機產生的平面的距離。


5.ViewportToScreenPoint:

Transforms position from viewport space into screen space.

從視口空間到屏幕空間的變換位置。

Viewport space is normalized and relative to the camera. The bottom-left of the camera is (0,0); the top-right is (1,1). The z position is in world units from the camera.

視口空間是規范化的并相對于相機。相機的左下為(0,0),右上是(1,1),Z的位置是以世界單位衡量的到相機的距離。

Screenspace is defined in pixels. The bottom-left of the screen is (0,0); the right-top is (pixelWidth,pixelHeight). The z position is in world units from the camera.

屏幕空間以像素定義。屏幕的左下為(0,0);右上是(pixelWidth,pixelHeight),Z的位置是以世界單位衡量的到相機的距離。


6.ScreenToViewportPoint

Transforms position from screen space into viewport space.

從屏幕空間到視窗空間的變換位置。

Screenspace is defined in pixels. The bottom-left of the screen is (0,0); the right-top is (pixelWidth,pixelHeight). The z position is in world units from the camera.

屏幕空間以像素定義。屏幕的左下為(0,0);右上是(pixelWidth,pixelHeight),Z的位置是以世界單位衡量的到相機的距離。

Viewport space is normalized and relative to the camera. The bottom-left of the camera is (0,0); the top-right is (1,1). The z position is in world units from the camera.

視口空間是規范化的并相對于相機。相機的左下為(0,0);右上是(1,1),Z的位置是以世界單位衡量的到相機的距離。


總結

以上是生活随笔為你收集整理的各坐标的转换:的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。