LParabolaf
from panda3d.core import LParabolaf
- class LParabolaf
Bases:
DTOOL_SUPER_BASE
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
- __init__(*args, **kwargs)
- assign()
C++ Interface: assign(const LParabolaf self, const LParabolaf copy)
- calcPoint()
C++ Interface: calc_point(LParabolaf self, float t)
- /**
Computes the point on the parabola at time t.
*/
- calc_point()
C++ Interface: calc_point(LParabolaf self, float t)
- /**
Computes the point on the parabola at time t.
*/
- getA()
C++ Interface: get_a(LParabolaf self)
- /**
Returns the first point of the parabola’s parametric equation: the
acceleration.
*/
- getB()
C++ Interface: get_b(LParabolaf self)
- /**
Returns the second point of the parabola’s parametric equation: the initial
velocity.
*/
- getC()
C++ Interface: get_c(LParabolaf self)
- /**
Returns the third point of the parabola’s parametric equation: the start
point.
*/
- get_a()
C++ Interface: get_a(LParabolaf self)
- /**
Returns the first point of the parabola’s parametric equation: the
acceleration.
*/
- get_b()
C++ Interface: get_b(LParabolaf self)
- /**
Returns the second point of the parabola’s parametric equation: the initial
velocity.
*/
- get_c()
C++ Interface: get_c(LParabolaf self)
- /**
Returns the third point of the parabola’s parametric equation: the start
point.
*/
- readDatagram()
C++ Interface: read_datagram(const LParabolaf self, DatagramIterator source)
- /**
Reads the parabola from the Datagram using get_stdfloat().
*/
- readDatagramFixed()
C++ Interface: read_datagram_fixed(const LParabolaf self, DatagramIterator source)
- /**
Reads the parabola from the Datagram using get_float32() or get_float64().
See write_datagram_fixed().
*/
- read_datagram()
C++ Interface: read_datagram(const LParabolaf self, DatagramIterator source)
- /**
Reads the parabola from the Datagram using get_stdfloat().
*/
- read_datagram_fixed()
C++ Interface: read_datagram_fixed(const LParabolaf self, DatagramIterator source)
- /**
Reads the parabola from the Datagram using get_float32() or get_float64().
See write_datagram_fixed().
*/
- writeDatagram()
C++ Interface: write_datagram(LParabolaf self, Datagram destination)
- /**
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()
C++ Interface: write_datagram_fixed(LParabolaf self, Datagram destination)
- /**
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.
*/
- write_datagram()
C++ Interface: write_datagram(LParabolaf self, Datagram destination)
- /**
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()
C++ Interface: write_datagram_fixed(LParabolaf self, Datagram destination)
- /**
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.
*/