MDLCamera.LookAt 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
LookAt(Vector3) |
將相機指向 |
LookAt(Vector3, Vector3) |
將相機移至 |
LookAt(Vector3)
將相機指向 focusPosition
。
[Foundation.Export("lookAt:")]
public virtual void LookAt (OpenTK.Vector3 focusPosition);
abstract member LookAt : OpenTK.Vector3 -> unit
override this.LookAt : OpenTK.Vector3 -> unit
參數
- focusPosition
- Vector3
- 屬性
適用於
LookAt(Vector3, Vector3)
將相機移至 from
,並將它 focusPosition
指向 。
[Foundation.Export("lookAt:from:")]
public virtual void LookAt (OpenTK.Vector3 focusPosition, OpenTK.Vector3 cameraPosition);
abstract member LookAt : OpenTK.Vector3 * OpenTK.Vector3 -> unit
override this.LookAt : OpenTK.Vector3 * OpenTK.Vector3 -> unit
參數
- focusPosition
- Vector3
- cameraPosition
- Vector3
- 屬性