A method.
Renaming.
New constructor.
Input validation.
Using constans from RobotsUtils.
Trajectory replaced by Line.
Collision now uses a polygon.
Many refactorings. Changed method names. Dropped Trajectory class and started using Line class. Remade the part that calculates the collision area to produce one more precise.