Level H Engine
Mechanics.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include "../Maths/Vec2.h"
4 #include "../Maths/Vec3.h"
5 
9 namespace Mechanics
10 {
11 
18  float distanceBetweenTwoPoints(Vec3 point1Pos, Vec3 point2Pos);
19 
26  float distanceBetweenTwoPoints(Vec2 point1Pos, Vec2 point2Pos);
27 
34  float calculateVelocity(float distance, float time);
35 
36 }
Contains the Vec2 structure with functions and overloaded operators.
Definition: Vec2.h:8
Contains physics mechanics functions for use within the code.
Definition: Mechanics.cpp:3
float distanceBetweenTwoPoints(Vec3 point1Pos, Vec3 point2Pos)
Takes in two positions and works out the distance between them.
Definition: Mechanics.cpp:6
float calculateVelocity(float distance, float time)
Calculates velocity from the distance and time.
Definition: Mechanics.cpp:27
Contains the Vec3 structure with functions and overloaded operators.
Definition: Vec3.h:8