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

適用於