| 95 | } |
| 96 | |
| 97 | double FPathMetrics::Add(const FVector& Location) |
| 98 | { |
| 99 | if (Length == -1) |
| 100 | { |
| 101 | Reset(Location); |
| 102 | return 0; |
| 103 | } |
| 104 | Length += DistToLast(Location); |
| 105 | Last = Location; |
| 106 | Count++; |
| 107 | return Length; |
| 108 | } |
| 109 | |
| 110 | double FPathMetrics::Add(const FVector& Location, double& OutDistToLast) |
| 111 | { |
no test coverage detected