FGeomTools2D::GenerateConvexHullFromPoints

From FGeomTools2D::GenerateConvexHullFromPoints, GeomTools.cpp:

Blockquote
// Find lowest point. If multiple points have the same y, find leftmost
int LowestPointIndex = 0;
FVector2D& LowestPoint = SourcePoints[0]; //Is this “&” a mistake?
for (int I = 1; I < SourcePointsCount; ++I)
{
if ((SourcePoints[I].Y < LowestPoint.Y) || (SourcePoints[I].Y == LowestPoint.Y && SourcePoints[I].X < LowestPoint.X))
{
LowestPointIndex = I;
LowestPoint = SourcePoints[I]; // The first point inputed will be overwritten here
}
}
Blockquote