ProjectionCamera.Position Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets the position of the camera in world coordinates.
public:
property System::Windows::Media::Media3D::Point3D Position { System::Windows::Media::Media3D::Point3D get(); void set(System::Windows::Media::Media3D::Point3D value); };
public System.Windows.Media.Media3D.Point3D Position { get; set; }
member this.Position : System.Windows.Media.Media3D.Point3D with get, set
Public Property Position As Point3D
Property Value
Point3D that specifies the position of the camera.
Examples
<Viewport3D.Camera>
<PerspectiveCamera FarPlaneDistance="20" LookDirection="5,-2,-3" UpDirection="0,1,0" NearPlaneDistance="0" Position="-5,2,3" FieldOfView="45" />
</Viewport3D.Camera>
Remarks
Note that this property returns the location of the camera, not the LookDirection on which the camera's projection is centered.
Dependency Property Information
Identifier field | PositionProperty |
Metadata properties set to true |
None |
Applies to
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈