Home  >  Article  >  Software Tutorial  >  Detailed method of making Bezier curve using geometric sketchpad

Detailed method of making Bezier curve using geometric sketchpad

PHPz
PHPzforward
2024-04-17 12:25:041001browse

Establish a rectangular coordinate system. Open the geometric sketchpad, click the [Draw] menu, and select the [Define Coordinate System] command to establish a rectangular coordinate system.

Detailed method of making Bezier curve using geometric sketchpad

Draw 4 points A, B, C, D arbitrarily in the plane, and measure their horizontal and vertical coordinates xA, yA, xB, yB, xC, yC, xD, yD.

Detailed method of making Bezier curve using geometric sketchpad

Create 2 functions. Click [Data] - [New Function] command to create the following function:

f(x)=xA*(1-x)3 3*xB*x*(1-x)2 3* xC*x2*(1-x) xD*x3

g(x)=yA*(1-x)3 3*yB*x*(1-x)2 3*yC*x2*( 1-x) yD*x3

Detailed method of making Bezier curve using geometric sketchpad

Select f(x) and g(x), click the [Draw] menu, select the [Draw Parametric Curve] command, and select the drawing parameters in the pop-up Click the [Draw] button in the curve dialog box, and a Bezier curve is generated.

Detailed method of making Bezier curve using geometric sketchpad

The above is the detailed content of Detailed method of making Bezier curve using geometric sketchpad. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:zol.com.cn. If there is any infringement, please contact admin@php.cn delete