' Рисуем курв на форме.
Private Sub DrawCurve(ByVal start_t As Single, ByVal stop_t _
As Single, ByVal dt As Single)
Dim cx As Single
Dim cy As Single
Dim t As Single
cx = ScaleLeft + ScaleWidth / 2
cy = ScaleTop + ScaleHeight / 2
Cls
CurrentX = cx + X(start_t)
CurrentY = cy + Y(start_t)
t = start_t + dt
Do While t < stop_t
Line -(cx + X(t), cy + Y(t))
t = t + dt
Loop
Line -(cx + X(stop_t), cy + Y(stop_t))
End Sub
|