Simulateur Ferroviaire
Reconstruction et visualisation d'un réseau ferroviaire à partir de données GeoJSON — Win32 / WebView2 / Leaflet
Chargement...
Recherche...
Aucune correspondance
CoordinateXY.h
Aller à la documentation de ce fichier.
1#pragma once
2
23{
24public:
25 double x = 0.0;
26 double y = 0.0;
27
29 CoordinateXY() = default;
30
36 CoordinateXY(double xValue, double yValue)
37 : x(xValue), y(yValue)
38 {}
39
40 bool operator==(const CoordinateXY& other) const
41 {
42 return x == other.x && y == other.y;
43 }
44
45 bool operator!=(const CoordinateXY& other) const
46 {
47 return !(*this == other);
48 }
49
50 std::string toString() const
51 {
52 return "[" + std::to_string(x) + " ; " + std::to_string(y) + "]";
53 }
54};
Coordonnée plane en mètres dans un système métrique (UTM ou similaire).
Definition CoordinateXY.h:23
double x
Abscisse en mètres (est pour UTM).
Definition CoordinateXY.h:25
bool operator!=(const CoordinateXY &other) const
Definition CoordinateXY.h:45
CoordinateXY()=default
CoordinateXY(double xValue, double yValue)
Construit une coordonnée avec les valeurs fournies.
Definition CoordinateXY.h:36
std::string toString() const
Definition CoordinateXY.h:50
bool operator==(const CoordinateXY &other) const
Definition CoordinateXY.h:40
double y
Ordonnée en mètres (nord pour UTM).
Definition CoordinateXY.h:26