The following document contains the results of PMD's CPD 5.3.5.
File | Line |
---|---|
org\opentrafficsim\imb\kpi\IMBSampler.java | 549 |
org\opentrafficsim\imb\kpi\IMBSampler.java | 640 |
String endNodeId = imbPayload.readString(); int dlNumPoints = imbPayload.readInt32(); double len = 0.0; double x = imbPayload.readDouble(); double y = imbPayload.readDouble(); double z = imbPayload.readDouble(); CartesianPoint p1 = new CartesianPoint(x, y, z); for (int i = 1; i < dlNumPoints; i++) { x = imbPayload.readDouble(); y = imbPayload.readDouble(); z = imbPayload.readDouble(); CartesianPoint p2 = new CartesianPoint(x, y, z); len += p1.distance(p2); p1 = p2; } Length length = new Length(len, LengthUnit.SI); |