PerspectiveCameraZoomByMovingCameraForward Method |
Zooms the view by moving the camera forward, i.e. by shifting both eye position and target position by the same amount, thus keeping the camera direction and the up vector constant.
Namespace: Altaxo.Graph.Graph3D.CameraAssembly: AltaxoBase (in AltaxoBase.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax public PerspectiveCamera ZoomByMovingCameraForward(
double distanceFactor,
double rx,
double ry,
double aspectRatio
)
Parameters
- distanceFactor Double
- The factor by which the distance is multiplied to get the moving distance = DistanceToTarget*(1-distanceFactor). Must be greater than zero. Values less than 1 means zoom in, values greater than one zoom out.
- rx Double
- The x component of the relative screen coordinate of the screen point which should afterwards show the same object (at target distance). Is a value in interval [-1,1].
- ry Double
- The y component of the relative screen coordinate of the screen point which should afterwards show the same object (at target distance). Is a value in interval [-1,1].
- aspectRatio Double
- The aspect ratio of the screen (y/x).
Return Value
PerspectiveCameraA new camera shofted forward by a difference, determined by parameter
distanceFactor and the current camera distance.
See Also