nuget server logo nuget api documents
↑

API Docs / Microsoft.VisualBasic.Math.Core / CatmullRomSpline

CatmullRomSpline

Full name Microsoft.VisualBasic.Math.Interpolation.CatmullRomSpline Assembly Microsoft.VisualBasic.Math.Core Members 3

Calculates interpolated point between two points using Catmull-Rom Spline

00 Remarks

https://en.wikipedia.org/wiki/Centripetal_Catmull%E2%80%93Rom_spline

01 Syntax

Microsoft.VisualBasic.Math.Interpolation.CatmullRomSpline

02 Methods

NameOverloadsSummary
PointOnCurve 1 Calculates interpolated point between two points using Catmull-Rom Spline
CatmullRomSpline 2 Catmull-Rom splines are a family of cubic interpolating splines formulated such that the tangent at each point Pi Is calculated using the previous And next point on the spline

03 Members

method PointOnCurve #
PointOnCurve(PointF, PointF, PointF, PointF, Double)

Calculates interpolated point between two points using Catmull-Rom Spline

Remarks

Points calculated exist on the spline between points two and three.

Parameters
NameTypeDescription
p0PointF

First Point

p1PointF

Second Point

p2PointF

Third Point

p3PointF

Fourth Point

tDouble

Normalised distance between second and third point where the spline point will be calculated

Returns

Calculated Spline Point

method CatmullRomSpline #
CatmullRomSpline(IEnumerable(Of Point), Double, Boolean)

Catmull-Rom splines are a family of cubic interpolating splines formulated such that the tangent at each point Pi Is calculated using the previous And next point on the spline

Parameters
NameTypeDescription
rawIEnumerable(Of Point)

-

interpolationStep#Double

-

isPolygonBoolean

-

method CatmullRomSpline overload 2 #
CatmullRomSpline(IEnumerable(Of PointF), Double, Boolean)

Catmull-Rom splines are a family of cubic interpolating splines formulated such that the tangent at each point Pi Is calculated using the previous And next point on the spline

Remarks
Parameters
NameTypeDescription
pointsIEnumerable(Of PointF)

-

interpolationStep#Double

-

isPolygonBoolean

-