Click or drag to resize

GdiExtensionMethodsInterpolate Method

Interpolates between the points p0 and p1.

Namespace: Altaxo.Graph.Gdi
Assembly: AltaxoBase (in AltaxoBase.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax
C#
public static PointF Interpolate(
	PointF p0,
	PointF p1,
	double r
)

Parameters

p0  PointF
The first point.
p1  PointF
The second point.
r  Double
Relative way between p0 and p1 (0..1).

Return Value

PointF
Interpolation between p0 and p1. The return value is p0 if r is 0. The return value is p1 if r is 1.
See Also