nuget server logo nuget api documents
↑

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

BezierCurve

Full name Microsoft.VisualBasic.Math.Interpolation.BezierCurve Assembly Microsoft.VisualBasic.Math.Core Members 8

A Bezier curve is a parametric curve frequently used in computer graphics and related fields. In vector graphics, Bezier curves are used to model smooth curves that can be scaled indefinitely. There are many ways to construct a Bezier curve. This simple program uses the midpoint algorithm of constructing a Bezier curve. To show the nature of the divide and conquer approach in the algorithm, a recursive function has been used to implement the construction of the piece of Bezier curve.

00 Remarks

http://www.codeproject.com/Articles/223159/Midpoint-Algorithm-Divide-and-Conquer-Method-for-D

01 Syntax

Microsoft.VisualBasic.Math.Interpolation.BezierCurve

02 Methods

NameOverloadsSummary
ReCalculate 1 recreate the bezier curve.
CreateBezier 1 create a bezier curve
PopulateBezierPoints 1 Recursivly call to construct the bezier curve with control points
MidPoint 1 Find mid point
MidPoints 1 medial axes between node centres And also boundary lines for the grid

03 Properties

NameOverloadsSummary
BezierPoints 1 store the list of points in the bezier curve.(贝塞尔曲线插值的结果列表)
InitPointsList 1 store the list of initial points
Iterations 1 store the number of iterations

04 Members

method ReCalculate #
ReCalculate(PointF, PointF, PointF, Int32)

recreate the bezier curve.

Parameters
NameTypeDescription
ctrl1PointF

first initial point

ctrl2PointF

second initial point

ctrl3PointF

third initial point

iterationInt32

number of iteration of the algorithm

Returns

the list of points in the curve

method CreateBezier #
CreateBezier(PointF, PointF, PointF)

create a bezier curve

Parameters
NameTypeDescription
ctrl1PointF

first initial point

ctrl2PointF

second initial point

ctrl3PointF

third initial point

method PopulateBezierPoints #
PopulateBezierPoints(PointF, PointF, PointF, Int32)

Recursivly call to construct the bezier curve with control points

Remarks
Parameters
NameTypeDescription
ctrl1PointF

first control point of bezier curve segment

ctrl2PointF

second control point of bezier curve segment

ctrl3PointF

third control point of bezier curve segment

currentIterationInt32

the current interation of a branch

method MidPoint #
MidPoint(PointF, PointF)

Find mid point

Parameters
NameTypeDescription
control1PointF

first control point

control2PointF

second control point

method MidPoints #
MidPoints(Double())

medial axes between node centres And also boundary lines for the grid

Parameters
NameTypeDescription
aDouble()

-

property BezierPoints #
BezierPoints

store the list of points in the bezier curve.(贝塞尔曲线插值的结果列表)

property InitPointsList #
InitPointsList

store the list of initial points

property Iterations #
Iterations

store the number of iterations