ערוך

שתף באמצעות


ProjectionCamera.Position Property

Definition

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