Vector2d direction = rm.getNewDirectionVector();
direction.normalize();
RealMatrix coefficients = new Array2DRowRealMatrix(new double[][] { { direction.getX(), -(sideVectX) },
{ direction.getY(), -(sideVectY) } }, false);
DecompositionSolver solver = new LUDecompositionImpl(coefficients).getSolver();
RealVector constants = new ArrayRealVector(new double[] { sideX - roboter1.getX(), sideY - roboter1.getY() }, false);
RealVector solution = solver.solve(constants);
double r = solution.getEntry(0);
// double s = solution.getEntry(1);