 |
FreeCameraGetFitIntoViewDistanceOrViewWidth(Vector3, FitIntoViewType, Boolean, Vector3) Method |
GetFitIntoViewDistanceOrViewWidth returns a Distance (for PerspectiveCamera) or a ViewWidth (for OrthographicCamera) and sets the newTargetPosition
that will adjust the camera so that all the specified positions will be visible from one edge of the viewport to another edge.
Namespace: Ab4d.SharpEngine.CamerasAssembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 3.2.9386+3a404a3e1ebfa4efd231da7fe6f10dfb23b95dc4
Syntaxpublic float GetFitIntoViewDistanceOrViewWidth(
Vector3[] positions,
FitIntoViewType fitIntoViewType,
bool adjustTargetPosition,
out Vector3 newTargetPosition
)
Parameters
- positions Vector3
- Array of Vector3 that defines the positions that will be used to fit into view
- fitIntoViewType FitIntoViewType
- type of check
- adjustTargetPosition Boolean
- true if the center position is adjusted; false if center position is preserved
- newTargetPosition Vector3
- out Vector3 that specified the new target position
Return Value
SingleDistance (for PerspectiveCamera) or ViewWidth (for OrthographicCamera)
Implements
IFitIntoViewCameraGetFitIntoViewDistanceOrViewWidth(Vector3, FitIntoViewType, Boolean, Vector3)
Remarks[Missing <remarks> documentation for "M:Ab4d.SharpEngine.Cameras.FreeCamera.GetFitIntoViewDistanceOrViewWidth(System.Numerics.Vector3[],Ab4d.SharpEngine.Common.FitIntoViewType,System.Boolean,System.Numerics.Vector3@)"]
See Also