Table of Contents

Method Create

Namespace
PaintDotNet.Rendering
Assembly
PaintDotNet.Primitives.dll

Create(FunctionInterpolationMode, IEnumerable<Point2Double>)

Creates a IFunctionInterpolator from the given points.

public static IFunctionInterpolator Create(FunctionInterpolationMode interpolationMode, IEnumerable<Point2Double> points)

Parameters

interpolationMode FunctionInterpolationMode

The interpolation mode to use.

points IEnumerable<Point2Double>

The points that make up the function. These will be sorted by their X value. If an X value occurs more than once then the behavior of the interpolator is undefined.

Returns

IFunctionInterpolator

Create(FunctionInterpolationMode, IEnumerable<KeyValuePair<double, double>>)

Creates a IFunctionInterpolator from the given points.

public static IFunctionInterpolator Create(FunctionInterpolationMode interpolationMode, IEnumerable<KeyValuePair<double, double>> points)

Parameters

interpolationMode FunctionInterpolationMode
The interpolation mode to use.
points IEnumerable<KeyValuePair<double, double>>
The points that make up the function. These will be sorted by their X value. If an X value occurs more than once then the behavior of the interpolator is undefined.

Returns

IFunctionInterpolator

Create(FunctionInterpolationMode, IEnumerable<Point2Float>)

Creates a IFunctionInterpolator from the given points.

public static IFunctionInterpolator Create(FunctionInterpolationMode interpolationMode, IEnumerable<Point2Float> points)

Parameters

interpolationMode FunctionInterpolationMode
The interpolation mode to use.
points IEnumerable<Point2Float>
The points that make up the function. These will be sorted by their X value. If an X value occurs more than once then the behavior of the interpolator is undefined.

Returns

IFunctionInterpolator

Create(FunctionInterpolationMode, IEnumerable<KeyValuePair<float, float>>)

Creates a IFunctionInterpolator from the given points.

public static IFunctionInterpolator Create(FunctionInterpolationMode interpolationMode, IEnumerable<KeyValuePair<float, float>> points)

Parameters

interpolationMode FunctionInterpolationMode
The interpolation mode to use.
points IEnumerable<KeyValuePair<float, float>>
The points that make up the function. These will be sorted by their X value. If an X value occurs more than once then the behavior of the interpolator is undefined.

Returns

IFunctionInterpolator