Closed Maphineth-UNG closed 1 week ago
This PR has been closed as it makes no functional or performance improvements to the point_in_view
method. It also reads like it was written using LLM. While we appreciate all PR's made into Arcade, we require them to be authored and written by people.
Also: The existing method is optimized. Introducing Vec2 will make it 10x slower. "High performance" in python is a completely different beast and needs careful human crafting.
I modified the point_in_view method to improve its clarity and readability. Currently, it calculates the dot product manually and uses intermediate variables. We can simplify it using vectorized operations to make it more concise and efficient.
Explanation: