Panda3D
|
An abstract mathematical description of a parabola, particularly useful for describing arcs of projectiles. More...
#include "parabola.h"
Public Member Functions | |
Parabolad () | |
Constructs a meaningless degenerate parabola. | |
Parabolad (const LVecBase3d &a, const LVecBase3d &b, const LVecBase3d &c) | |
Constructs a parabola given the three points of the parametric equation: the acceleration, initial velocity, and start point. | |
Parabolad (const LVecBase3d &a, const LVecBase3d &b, const LVecBase3d &c) | |
Parabolad (const Parabolad ©) | |
Parabolad (const Parabolad ©) | |
LPoint3d | calc_point (double t) const |
Computes the point on the parabola at time t. | |
LPoint3d | calc_point (double t) const |
const LVecBase3d & | get_a () const |
const LVecBase3d & | get_a () const |
Returns the first point of the parabola's parametric equation: the acceleration. | |
const LVecBase3d & | get_b () const |
Returns the second point of the parabola's parametric equation: the initial velocity. | |
const LVecBase3d & | get_b () const |
const LVecBase3d & | get_c () const |
Returns the third point of the parabola's parametric equation: the start point. | |
const LVecBase3d & | get_c () const |
void | operator= (const Parabolad ©) |
void | operator= (const Parabolad ©) |
void | output (ostream &out) const |
void | output (ostream &out) const |
void | read_datagram (DatagramIterator &source) |
void | read_datagram (DatagramIterator &source) |
Function to read itself from a datagramIterator. | |
void | write (ostream &out, int indent_level=0) const |
void | write (ostream &out, int indent_level=0) const |
void | write_datagram (Datagram &destination) const |
void | write_datagram (Datagram &destination) const |
Function to write itself into a datagram. | |
void | xform (const LMatrix4d &mat) |
Transforms the parabola by the indicated matrix. | |
void | xform (const LMatrix4d &mat) |
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.
Definition at line 47 of file parabola.h.
Parabolad::Parabolad | ( | ) | [inline] |
Constructs a meaningless degenerate parabola.
Definition at line 103 of file parabola.h.
Parabolad::Parabolad | ( | const LVecBase3d & | a, |
const LVecBase3d & | b, | ||
const LVecBase3d & | c | ||
) | [inline] |
Constructs a parabola given the three points of the parametric equation: the acceleration, initial velocity, and start point.
Definition at line 118 of file parabola.h.
LPoint3d Parabolad::calc_point | ( | double | t | ) | const [inline] |
Computes the point on the parabola at time t.
Definition at line 198 of file parabola.h.
const LVecBase3d & Parabolad::get_a | ( | ) | const [inline] |
Returns the first point of the parabola's parametric equation: the acceleration.
Definition at line 166 of file parabola.h.
const LVecBase3d & Parabolad::get_b | ( | ) | const [inline] |
Returns the second point of the parabola's parametric equation: the initial velocity.
Definition at line 177 of file parabola.h.
const LVecBase3d & Parabolad::get_c | ( | ) | const [inline] |
Returns the third point of the parabola's parametric equation: the start point.
Definition at line 188 of file parabola.h.
void Parabolad::read_datagram | ( | DatagramIterator & | source | ) |
Function to read itself from a datagramIterator.
Definition at line 85 of file parabola.cxx.
void Parabolad::write_datagram | ( | Datagram & | destination | ) | const |
Function to write itself into a datagram.
Definition at line 73 of file parabola.cxx.
void Parabolad::xform | ( | const LMatrix4d & | mat | ) |
Transforms the parabola by the indicated matrix.
Definition at line 39 of file parabola.cxx.