Panda3D
|
An abstract mathematical description of a parabola, particularly useful for describing arcs of projectiles. More...
Public Member Functions | |
Parabolaf () | |
Constructs a meaningless degenerate parabola. | |
Parabolaf (VBase3 const a, VBase3 const b, VBase3 const c) | |
Constructs a parabola given the three points of the parametric equation: the acceleration, initial velocity, and start point. | |
Parabolaf (Parabolaf const copy) | |
Point3 | calcPoint (float t) |
Computes the point on the parabola at time t. | |
VBase3 const | getA () |
Returns the first point of the parabola's parametric equation: the acceleration. | |
VBase3 const | getB () |
Returns the second point of the parabola's parametric equation: the initial velocity. | |
VBase3 const | getC () |
Returns the third point of the parabola's parametric equation: the start point. | |
Parabolaf | operator= (Parabolaf const copy) |
output (ostream out) | |
write (ostream out) | |
write (ostream out, int indent_level) | |
xform (Mat4 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.
Parabolaf | ( | ) |
Constructs a meaningless degenerate parabola.
Constructs a parabola given the three points of the parametric equation: the acceleration, initial velocity, and start point.
Point3 calcPoint | ( | float | t | ) |
Computes the point on the parabola at time t.
VBase3 const getA | ( | ) |
Returns the first point of the parabola's parametric equation: the acceleration.
VBase3 const getB | ( | ) |
Returns the second point of the parabola's parametric equation: the initial velocity.
VBase3 const getC | ( | ) |
Returns the third point of the parabola's parametric equation: the start point.
output | ( | ostream | out | ) |
write | ( | ostream | out | ) |
xform | ( | Mat4 const | mat | ) |
Transforms the parabola by the indicated matrix.