Panda3D
Public Member Functions

Parabolad Class Reference

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

List of all members.

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.

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.


Constructor & Destructor Documentation

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)

Member Function Documentation

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,
int  indent_level 
)
write ( ostream  out)
xform ( Mat4D const  mat)

Transforms the parabola by the indicated matrix.

 All Classes Namespaces Functions Variables Enumerations Enumerator Properties