LParabolaf

from panda3d.core import LParabolaf
class LParabolaf

Bases:

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 LParabolaf

__init__()

Constructs a meaningless degenerate parabola.

__init__(copy: LParabolaf)
__init__(a: LVecBase3f, b: LVecBase3f, c: LVecBase3f)

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

assign(copy: LParabolaf) LParabolaf
calc_point(t: float) LPoint3f

Computes the point on the parabola at time t.

get_a() LVecBase3f

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

get_b() LVecBase3f

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

get_c() LVecBase3f

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

output(out: ostream)
read_datagram(source: DatagramIterator)

Reads the parabola from the Datagram using get_stdfloat().

read_datagram_fixed(source: DatagramIterator)

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

write(out: ostream, indent_level: int)
write_datagram(destination: Datagram)

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.

write_datagram_fixed(destination: Datagram)

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.set_stdfloat_double(). 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: LMatrix4f)

Transforms the parabola by the indicated matrix.