18
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-12-01 18:47:06 +01:00
Files
maszyna/physics/components/internal.h
T
Hirek d4bd3fc5ca refactor(physics): physics/mover/ becomes physics/components/
The files of the parts of a vehicle (pneumatics, electrics, traction, doors,
drives...) are in physics/components/, not under the old name of the mover;
the file of the vehicle as a body, its forces and its movement, is body.cpp
(was mover.cpp). The includes, CMakeLists.txt and AGENTS.md name the new
paths.

Renames only. 1144/1144 tests, golden traces exact against staging 62f7a29b.
2026-11-28 00:28:34 +01:00

34 lines
757 B
C++

/*
This Source Code Form is subject to the
terms of the Mozilla Public License, v.
2.0. If a copy of the MPL was not
distributed with this file, You can
obtain one at
http://mozilla.org/MPL/2.0/.
*/
// the helpers the files of physics/components/ share: only they include this header
#pragma once
#include "physics/mover.h"
const double CouplerTune = 0.1; // skalowanie tlumiennosci
inline double square(double val) // SQR() zle liczylo w current() ...
{
return val * val;
}
int DirPatch(int Coupler1, int Coupler2);
int DirF(int CouplerN);
double TableInterpolation(std::map<double, double> &Map, double Parameter);
double compression_at(TCoupling const &Coupler, int const End);
bool issection(std::string_view Name, std::string_view Input);