Click or drag to resize
AB4D logo

TargetRect3DCamera Class

TargetRect3DCamera is a camera that instead of looking at a position defined by the Point3D looks at a position defined by the Rect3D.
Inheritance Hierarchy
SystemObject
  System.Windows.ThreadingDispatcherObject
    System.WindowsDependencyObject
      System.Windows.MediaVisual
        System.WindowsUIElement
          System.WindowsFrameworkElement
            Ab3d.CamerasBaseCamera
              Ab3d.CamerasSphericalCamera
                Ab3d.CamerasBaseTargetPositionCamera
                  Ab3d.CamerasBaseTargetRect3DCamera
                    Ab3d.CamerasTargetRect3DCamera

Namespace: Ab3d.Cameras
Assembly: Ab3d.PowerToys (in Ab3d.PowerToys.dll) Version: 11.2.9104.2045
Syntax
C#
public class TargetRect3DCamera : BaseTargetRect3DCamera

The TargetRect3DCamera type exposes the following members.

Constructors
 NameDescription
Public methodTargetRect3DCamera Constructor
Top
Properties
 NameDescription
Public propertyTargetRect3D Gets or sets the Rect3D that is used as a camera target - the camera is looking at the TargetRect3D.
Top
Remarks

If the IsDistancePercent property is true, the Distance property is specified as percentage of the size of the TargetRect3D.

The TargetRect3DCamera also defines a IsDynamicTarget property that can be set to true to constantly (CompositionTarget.Rendering event) monitor the position and size of the TargetRect3D and move the camera according to the change.

See Also