Panda3D
Public Member Functions

Parabolad Class Reference

An abstract mathematical description of a parabola, particularly useful for describing arcs of projectiles. More...

#include "parabola.h"

List of all members.

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 &copy)
 Parabolad (const Parabolad &copy)
LPoint3d calc_point (double t) const
 Computes the point on the parabola at time t.
LPoint3d calc_point (double t) const
const LVecBase3dget_a () const
const LVecBase3dget_a () const
 Returns the first point of the parabola's parametric equation: the acceleration.
const LVecBase3dget_b () const
 Returns the second point of the parabola's parametric equation: the initial velocity.
const LVecBase3dget_b () const
const LVecBase3dget_c () const
 Returns the third point of the parabola's parametric equation: the start point.
const LVecBase3dget_c () const
void operator= (const Parabolad &copy)
void operator= (const Parabolad &copy)
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)

Detailed Description

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.


Constructor & Destructor Documentation

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.


Member Function Documentation

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.


The documentation for this class was generated from the following files:
 All Classes Functions Variables Enumerations