Click or drag to resize

BasePluginCameraInterpolateFromNPoints Method

Calculates a value y to the given value x by performing a polynomial interpolation between the given points. In case of four points a cubic interpolation is done: y = f(x) = a*x^3 + b*x^2 + c*x + d.

Namespace: RAYLASE.Marker.CamerasPlugin
Assembly: RAYLASE.Marker.CamerasPlugin (in RAYLASE.Marker.CamerasPlugin.dll) Version: 2.19.0
Syntax
C#
public static double InterpolateFromNPoints(
	List<dvec2> points,
	double x,
	out double dy
)

Parameters

points  Listdvec2
The points defining the polynomial.
x  Double
The x value the y value is searched to.
dy  Double
An error estimation value.

Return Value

Double
The interpolated y value.
Exceptions
ExceptionCondition
ApplicationException
See Also