Module game_qu.base.quadratic_equations
Expand source code
import math
from game_qu.base.important_variables import SCREEN_HEIGHT
from game_qu.base.utility_functions import get_kwarg_item, solve_quadratic
from game_qu.base.velocity_calculator import VelocityCalculator
from game_qu.math.function import Function
from game_qu.math.physics_function import PhysicsFunction
from game_qu.math.quadratic_function import QuadraticFunction
from game_qu.paths.physics_followable_path import PhysicsFollowablePath
class QuadraticEquation(QuadraticFunction):
"""The same class as QuadraticFunction, but this is kept to keep the API the same between library versions"""
pass
class PhysicsEquation(PhysicsFunction):
"""The same class as PhysicsFunction, but this is kept to keep the API the same between library versions"""
pass
class PhysicsPath(PhysicsFollowablePath):
"""The same class as PhysicsFollowablePath, but this is kept to keep the API the same between library versions"""
pass
Classes
class PhysicsEquation-
The same class as PhysicsFunction, but this is kept to keep the API the same between library versions
Expand source code
class PhysicsEquation(PhysicsFunction): """The same class as PhysicsFunction, but this is kept to keep the API the same between library versions""" passAncestors
Inherited members
PhysicsFunction:get_a_b_and_cget_displacementget_displacement_due_to_accelerationget_displacement_due_to_velocityget_distanceget_full_cycle_timeget_indefinite_integral_of_acceleration_equationget_indefinite_integral_of_position_equationget_indefinite_integral_of_velocity_equationget_time_to_vertexget_times_to_pointget_velocity_using_displacementget_velocity_using_timeget_vertexset_acceleration_with_displacementset_acceleration_with_velocityset_all_variablesset_variablesset_velocity_with_displacement
class PhysicsPath (**kwargs)-
The same class as PhysicsFollowablePath, but this is kept to keep the API the same between library versions
Initializes the object
Args
game_object:GameObject- the game object that is following this path
attribute_modifying:str- the name of the attribute this path is modifying
time:float- the time to the vertex of the path
height_of_path:float- the difference between the initial distance and the vertex of the path
max_time:float- the max time of the path - the time the path should end (None if the path should not end)
Returns
None
Expand source code
class PhysicsPath(PhysicsFollowablePath): """The same class as PhysicsFollowablePath, but this is kept to keep the API the same between library versions""" passAncestors
Inherited members
PhysicsFollowablePath:get_a_b_and_cget_acceleration_displacementget_acceleration_displacement_from_timeget_delta_valueget_displacementget_displacement_due_to_accelerationget_displacement_due_to_velocityget_distanceget_final_velocityget_full_cycle_timeget_indefinite_integral_of_acceleration_equationget_indefinite_integral_of_position_equationget_indefinite_integral_of_velocity_equationget_time_to_vertexget_times_to_pointget_total_displacementget_value_at_timeget_velocity_displacementget_velocity_using_displacementget_velocity_using_timeget_vertexhas_finishedis_doneresetrestartrunset_acceleration_with_displacementset_acceleration_with_velocityset_all_variablesset_initial_distanceset_variablesset_velocity_with_displacementstart
class QuadraticEquation-
The same class as QuadraticFunction, but this is kept to keep the API the same between library versions
Expand source code
class QuadraticEquation(QuadraticFunction): """The same class as QuadraticFunction, but this is kept to keep the API the same between library versions""" passAncestors
- QuadraticFunction
- Function
- abc.ABC
Inherited members