MCPcopy Create free account
hub / github.com/PCGEx/PCGExtendedToolkit / Update

Method Update

Source/PCGExtendedToolkit/Private/PCGExMath.cpp:24–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 {

Calls

no outgoing calls

Tested by

no test coverage detected