libnumerixpp  0.1.1
A Powerful C++ Library for High-Performance Numerical Computing
physics::kinematics Namespace Reference

Namespace of kinematics (physics) More...

Functions

double calculatePath (double speed, double time)
 Calculates the path. More...
 
double calculateSpeed (double path, double time)
 Calculates the speed. More...
 
double calculateTime (double path, double speed)
 Calculates the time. More...
 
double calculateFinalVelocity (double initial_velocity, double acceleration, double time)
 Calculates the final velocity. More...
 
double calculateFinalPosition (double initial_position, double initial_velocity, double acceleration, double time)
 Calculates the final position. More...
 

Detailed Description

Namespace of kinematics (physics)

Todo:
Add more kinematics equations

Function Documentation

◆ calculateFinalPosition()

double physics::kinematics::calculateFinalPosition ( double  initial_position,
double  initial_velocity,
double  acceleration,
double  time 
)

Calculates the final position.

This function is based on the kinematics equation: s = u*t + 0.5 * a * t^2 where:

  • s - final position (m)
  • u - start speed (m/s)
  • a - acceleration (m/s^2)
  • t - time (s)
Parameters
[in]initial_positionThe initial position
[in]initial_velocityThe initial velocity
[in]accelerationThe acceleration
[in]timeThe time
Returns
The final position.

◆ calculateFinalVelocity()

double physics::kinematics::calculateFinalVelocity ( double  initial_velocity,
double  acceleration,
double  time 
)

Calculates the final velocity.

This function is based on the basic kinematics equation: v = u + at where:

  • v - final velocity (m/s)
  • u - start speed (m/s)
  • a - accelaration (m/s^2)
  • t - time (s)
Parameters
[in]initial_velocityThe initial velocity
[in]accelerationThe acceleration
[in]timeThe time
Returns
The final velocity.

◆ calculatePath()

double physics::kinematics::calculatePath ( double  speed,
double  time 
)

Calculates the path.

This function is based on basic formule: S = v * t where:

  • S - path (m)
  • v - speed (m/s)
  • t - time (s)
Parameters
[in]speedThe speed
[in]timeThe time
Returns
The path.

◆ calculateSpeed()

double physics::kinematics::calculateSpeed ( double  path,
double  time 
)

Calculates the speed.

This function is based on basic formule: S = v * t where:

  • S - path (m)
  • v - speed (m/s)
  • t - time (s)
Parameters
[in]pathThe path
[in]timeThe time
Returns
The speed.

◆ calculateTime()

double physics::kinematics::calculateTime ( double  path,
double  speed 
)

Calculates the time.

This function is based on basic formule: S = v * t where:

  • S - path (m)
  • v - speed (m/s)
  • t - time (s)
Parameters
[in]pathThe path
[in]speedThe speed
Returns
The time.