magicfile icon magicfile

Source and code of linear interpolation program with Visual Basic .NET

سورس-و-کد-برنامه-درون-یابی-خطی-با-ویژوال-بیسیک-دات-نت
Short description and download link
Today, in this post, for you, dear users, we have prepared a source and code for a linear interpolation program with Visual Basic.NET ready for download.

Download

List of similar files

Short link: https://en.magicfile.ir/?p=2395

Full description of the file

Download the source and code of the linear interpolation program with Visual Basic.Net (BezierSplines Cubic Splines vb.net)

Today, in this post, for you, dear users, we have prepared a source and code for a linear interpolation program with Visual Basic.NET ready for download.

This software is designed to support the calculation of x-y value curve positions algorithm that you can easily get any desired point in that drawn curve by drawing a BezierSpline with GDI+ (calling Graphics.DrawCurve(Points)).

سورس و کد برنامهLinear interpolation با ویژوال بیسیک دات نت

A Bezier-Splines curve (brown), made by 7 support points, dividing the BezierSplines into 6 Bezier-Segments. 19 structure points that model the curve (orange). A "pointer curve" (red). It can be moved along the BezierSplines and its location is displayed, calculated by interpolating the BezierSplines.

How BezierSplines are made

Each segment between two support points is created as a BezierCurve with 4 construction points:
The two support points themselves and two additional points, which make sure that the Bezier degree that reaches the support point is the same as the Bezier degree. , which leaves the support point.

Now interpolate it

To get the Y value of an X position, I interpolate the BezierSplines in two steps:
First, I search for the Bezier-Segment that contains the X position. This is quickly done by a binary search:

Decrease

Interpolating Bezier-Spline-Segments as a function Y = f(X) - is mathematically incorrect.
Although I keep the support points in "left to right" order, a segment can form where it represents more than one Y value at certain X positions.
My "append" ignores such cases and simply returns the first Y-Value.
The failure allows itself to be seen by some parts of the curve, which cannot be reached by interpolation.

It is mathematically correct to interpolate CubicSplines.
They are mathematically undefined only if two support points lie on the same X position (as a vertical line).

Polygon, cubic spline

While the interpolation of polygons is trivial, the same is - ahem - trivial in CubicSplines. There is no GDI+ - function that will draw it for you, so you have to deal with linear algebra to solve systems of linear equations - brrr! - I have done this without real understanding.

To get the source and code of the linear interpolation program with Visual Basic.NET, click on the link below

Click here to download

Files that you may need

نمونه-سورس-و-کد-نرم-افزار-برنامه-تمرینات-ورزشی-بصورت-اندروید-استودیو-کاتلین-(-Android-Studio-Kotlin-)

Sample source and software code of sports training program for Android Studio Kotlin (Android Studio Kotlin)

Download
more details
نمونه-سورس-و-کد-بازی-با-کلمات-با-محیط-برنامه-نویسی-بیسیک-فور-اندروید

Sample source and game code with words with Basic Four Android programming environment

Download
more details

User comments

کد امنیتی

List of website special files

دانلود-نرم-افزار-تبدیل-فایل-متنی-به-vcf-(مخاطب-موبایل)
Download software to convert text file to vcf (mobile contact)

استخراج-فالوور-های-اینستاگرام-نرم-افزار-ربات-اينستاگرامي-براي-دريافت-ليست-کامل-فالو-شده-ها-و-فالو-کننده-ها
Extracting Instagram followers Instagram robot software to receive a complete list of followers and followers

دانلود-نرم-افزار-تغییر-زبان-سورس-و-کد-ویژوال-استودیو-(عناصر-دیزاین-طراحی-فرم-ها)
Download software to change the source language and code of Visual Studio (design elements of form design)

دانلود-نرم-افزار-ترجمه-خودکار-فایل-های-po-,-pot-بصورت-کامل-برای-تمامی-زبان-ها-از-جمله-فارسی
Download automatic translation software for po, pot files in full for all languages, including Persian

بهترین-سرویس-پوش-نوتیفیکیشن-اسکريپت-مديريت-اعلان-و-ساخت-پوش-نوتیفیکیشن-سایت
The best notification service push script notification management and build site notification push