Declaration of the Intersection class representing a point in 2D space.
Represents a point (intersection) in a 2D coordinate system.
Definition Intersection.h:16
Represents a road connecting two Intersections in 2D space, with a computed length and a maximum spee...
Definition Road.h:16
Intersection getTo() const
Retrieves the ending Intersection.
Definition Road.cpp:27
int getMaxSpeed() const
Retrieves the maximum speed for this road.
Definition Road.cpp:31
Road()
Default constructor. Initializes both endpoints at (0,0), length to 0.0, and maxSpeed to 0.
Definition Road.cpp:9
Intersection getFrom() const
Retrieves the starting Intersection.
Definition Road.cpp:25
double getLength() const
Retrieves the computed length of the road.
Definition Road.cpp:29