Does Java have a built-in Vector class suitable for handling collision detection / response? It should have methods like
dotProduct(Vector v), ...
It seems logical to use
java.awt.Polygon to calculate collisions. Would I be right to use these classes for this purpose?
I understand collision detection; I'm only wondering what approach to it is idiomatic in Java. I'm new to the language and to application development in general.