| 22 | } |
| 23 | |
| 24 | bool FClosestPosition::Update(const FVector& InLocation) |
| 25 | { |
| 26 | if (const double Dist = FVector::DistSquared(Origin, InLocation); Dist < DistSquared) |
| 27 | { |
| 28 | bValid = true; |
| 29 | DistSquared = Dist; |
| 30 | Location = InLocation; |
| 31 | return true; |
| 32 | } |
| 33 | |
| 34 | return false; |
| 35 | } |
| 36 | |
| 37 | bool FClosestPosition::Update(const FVector& InLocation, const int32 InIndex) |
| 38 | { |
no outgoing calls
no test coverage detected