This is not how generics work! The only way you could do that with generics is if you had <T extends PVector> but then you would only be able to put PVectors in it. Or you make specific subclasses to handle specific types.
This is not how generics work! The only way you could do that with generics is if you had <T extends PVector> but then you would only be able to put PVectors in it. Or you make specific subclasses to handle specific types.