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.0.9584+ba1aaa26d4181dd3fa8ed7b6398391d1affa36c8
Syntax
C#
public float GetZoomToExtentsShiftDistance(
	BoundingBox boundingBox
)

Parameters

boundingBox  BoundingBox
The bounding box.

Return Value

Single
The zoom to fit distance
See Also