Click or drag to resize
Ab4d.SharpEngine logo

BoundingFrustumGetZoomToExtentsShiftDistance(BoundingBox) Method

Get the distance which when added to camera position along the lookat direction will do the effect of zoom to extents (zoom to fit) operation, so all the passed points will fit in the current view. if the returned value is positive, the camera will move toward the lookat direction (ZoomIn). if the returned value is negative, the camera will move in the reverse direction of the lookat direction (ZoomOut).

Namespace: Ab4d.SharpEngine.Common
Assembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 4.1.9680+a1b1e43de1ad9a7e35472c33948d688d7b40ef79
Syntax
C#
public float GetZoomToExtentsShiftDistance(
	BoundingBox boundingBox
)

Parameters

boundingBox  BoundingBox
The bounding box.

Return Value

Single
The zoom to fit distance
See Also