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
- 属性