ProjectionCamera.LookDirection 属性

定义

获取或设置定义摄像机在世界坐标中的拍摄方向的 Vector3D

public:
 property System::Windows::Media::Media3D::Vector3D LookDirection { System::Windows::Media::Media3D::Vector3D get(); void set(System::Windows::Media::Media3D::Vector3D value); };
public System.Windows.Media.Media3D.Vector3D LookDirection { get; set; }
member this.LookDirection : System.Windows.Media.Media3D.Vector3D with get, set
Public Property LookDirection As Vector3D

属性值

表示摄像机的视角方向的 Vector3D。

示例

以下摘录在 PerspectiveCamera 上设置此属性。

<Viewport3D.Camera>
  <PerspectiveCamera FarPlaneDistance="20" LookDirection="5,-2,-3" UpDirection="0,1,0" NearPlaneDistance="0" Position="-5,2,3" FieldOfView="45" />
</Viewport3D.Camera>

注解

依赖项属性信息

标识符字段 LookDirectionProperty
元数据属性设置为 true

适用于