Panda3D
|
An abstract mathematical description of a parabola, particularly useful for describing arcs of projectiles. More...
Public Member Functions | |
Parabolad () | |
Constructs a meaningless degenerate parabola. | |
Parabolad (VBase3D const a, VBase3D const b, VBase3D const c) | |
Constructs a parabola given the three points of the parametric equation: the acceleration, initial velocity, and start point. | |
Parabolad (Parabolad const copy) | |
Point3D | calcPoint (double t) |
Computes the point on the parabola at time t. | |
VBase3D const | getA () |
Returns the first point of the parabola's parametric equation: the acceleration. | |
VBase3D const | getB () |
Returns the second point of the parabola's parametric equation: the initial velocity. | |
VBase3D const | getC () |
Returns the third point of the parabola's parametric equation: the start point. | |
Parabolad | operator= (Parabolad const copy) |
output (ostream out) | |
write (ostream out) | |
write (ostream out, int indent_level) | |
xform (Mat4D const mat) | |
Transforms the parabola by the indicated matrix. |
An abstract mathematical description of a parabola, particularly useful for describing arcs of projectiles.
The parabolic equation, given parametrically here, is P = At^2 + Bt + C.
Parabolad | ( | ) |
Constructs a meaningless degenerate parabola.
Constructs a parabola given the three points of the parametric equation: the acceleration, initial velocity, and start point.
Point3D calcPoint | ( | double | t | ) |
Computes the point on the parabola at time t.
VBase3D const getA | ( | ) |
Returns the first point of the parabola's parametric equation: the acceleration.
VBase3D const getB | ( | ) |
Returns the second point of the parabola's parametric equation: the initial velocity.
VBase3D const getC | ( | ) |
Returns the third point of the parabola's parametric equation: the start point.
output | ( | ostream | out | ) |
write | ( | ostream | out | ) |
xform | ( | Mat4D const | mat | ) |
Transforms the parabola by the indicated matrix.