panda3d.core.LParabolad

from panda3d.core import LParabolad
class LParabolad

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.

Inheritance diagram

Inheritance diagram of LParabolad

__init__() → None

Constructs a meaningless degenerate parabola.

__init__(copy: LParabolad) → None
__init__(a: LVecBase3d, b: LVecBase3d, c: LVecBase3d) → None

Constructs a parabola given the three points of the parametric equation: the acceleration, initial velocity, and start point.

assign(copy: LParabolad) → LParabolad
Return type

LParabolad

calcPoint(t: float) → LPoint3d

Computes the point on the parabola at time t.

Return type

LPoint3d

getA() → LVecBase3d

Returns the first point of the parabola’s parametric equation: the acceleration.

Return type

LVecBase3d

getB() → LVecBase3d

Returns the second point of the parabola’s parametric equation: the initial velocity.

Return type

LVecBase3d

getC() → LVecBase3d

Returns the third point of the parabola’s parametric equation: the start point.

Return type

LVecBase3d

output(out: ostream) → None
readDatagram(source: DatagramIterator) → None

Reads the parabola from the Datagram using get_stdfloat().

readDatagramFixed(source: DatagramIterator) → None

Reads the parabola from the Datagram using get_float32() or get_float64(). See writeDatagramFixed().

write(out: ostream, indent_level: int) → None
writeDatagram(destination: Datagram) → None

Writes the parabola to the Datagram using add_stdfloat(). This is appropriate when you want to write the vector using the standard width setting, especially when you are writing a bam file.

writeDatagramFixed(destination: Datagram) → None

Writes the parabola to the Datagram using add_float32() or add_float64(), depending on the type of floats in the parabola, regardless of the setting of Datagram.setStdfloatDouble(). This is appropriate when you want to write a fixed-width value to the datagram, especially when you are not writing a bam file.

xform(mat: LMatrix4d) → None

Transforms the parabola by the indicated matrix.