Click or drag to resize
AB4D logo

CameraControlPanelMoveCamera Method

MoveCamera method moves the camera for the mouse change defined by offsetXChange and offsetYChange parameters.

Namespace: Ab3d.Controls
Assembly: Ab3d.PowerToys (in Ab3d.PowerToys.dll) Version: 11.1.8864.1045
Syntax
C#
public virtual void MoveCamera(
	double offsetXChange,
	double offsetYChange
)

Parameters

offsetXChange  Double
camera movement in x direction
offsetYChange  Double
camera movement in y direction
Remarks

MoveCamera method moves the camera for the mouse change defined by offsetXChange and offsetYChange parameters.

This method is called when any button to move the camera left, right, up or down is called. The parameters are the following:
left: MoveCamera(1, 0); right: MoveCamera(-1, 0); up: MoveCamera(0, -1); down: MoveCamera(0, 1);

See Also