IFit |
double GetFitIntoViewDistanceOrCameraWidth( IList<Visual3D> visuals, FitIntoViewType fitIntoViewType, bool adjustTargetPosition, out Point3D newTargetPosition )
GetFitIntoViewDistanceOrCameraWidth returns Distance (for PerspectiveCamera) or CameraWidth (for OrthographicCamera) and sets the newTargetPosition that will adjust the camera so that all the objects on the scene will be visible from one edge of the viewport to another edge.
DXEngine notice:
When scene contains 3D objects defined by SceneNodes that are not created from WPF 3D objects (for example MeshObjectNode),
this method can get the bounds of those SceneNodes but cannot access individual positions (as CheckBounds fitIntoViewType would be used for those SceneNodes).