C#实现抛物线插值函数
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace WindowsFormsApplication2
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void Form1_Load(object sender, EventArgs e)
{
}
int x0 = 60, y0 = 200, x1 = 120, y1 = 80, x2 = 180, y2 = 180;
private void Form1_Paint(object sender, PaintEventArgs e)
{
Graphics g = this.CreateGraphics();
Pen pen = new Pen(Color.Red, 3);
g.Clear(this.BackColor);
2023-01-08 18:28:03
2KB
C#
插值
1