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: 10.2.8348.1045
Syntax
C#
public delegate double EasingFunctionDelegate(
	double x
)

Parameters

x
Type: SystemDouble
input value

Return Value

Type: 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:

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