Panda3D
Public Member Functions

Parabolaf Class Reference

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

List of all members.

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.

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

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)

Member Function Documentation

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

Transforms the parabola by the indicated matrix.

 All Classes Namespaces Functions Variables Enumerations Enumerator Properties