Notes:
A lovely quadratic function! Relish the moment!
y = ax2 + bx + c in [x0, xf]
As lovely as it is, some novices had trouble crafting one to their designs. Therefore we created TNTArch which is the same shape but the parameters are easier to adjust. Try it out!
TNTParabola Features and Usage:
| Primary Attributes: |
8 Parameters:
|
|---|---|
| To Create: |
The example above was created by:
//special points/components
var a = .25;
var b = 2;
var c = -6;
var x0 = -8;
var xf = 5;
var fcolr = yellow;
var scolr = navyStroke;
var rotn = 0;
var myParabola = new TNTParabola(a, b, c, x0, xf, fcolr, scolr, rotn);
myParabola.drawTNTParabola(context);
|
| To Draw: |
myParabola.drawTNTParabola(context); |
