normalize
Normalizes a given array of Vec2 intersections. The method applies several operations to ensure that the intersections:
Are rounded and filtered within a defined parametric range (0, 1).
Are sorted and deduplicated based on their
xandycoordinates. The final result will be an array of unique, normalized intersections within the defined bounds.
Return
A new array of normalized and deduplicated Vec2 intersections.
Parameters
intersections
An array of Vec2 objects representing intersections that need to be normalized.