Click or drag to resize
AB4D logo

BaseCameraEasingFunctionDelegate Delegate

EasingFunctionDelegate is used to define the easing function that can be used to with StartRotation and EndRotation methods.

Namespace: Ab3d.Cameras
Assembly: Ab3d.PowerToys (in Ab3d.PowerToys.dll) Version: 11.1.8864.1045
Syntax
C#
public delegate double EasingFunctionDelegate(
	double x
)

Parameters

x  Double
input value

Return Value

Double
eased value
Remarks

EasingFunctionDelegate is used to define the easing function that can be used to with StartRotation and EndRotation methods.

MouseCameraController is using the following cubic function to ease the camera rotation inertia:

C#
public static double CubicEaseOut(double x)
{
    return (x - 1) * (x - 1) * (x - 1) + 1;
}
See Also