Basically, I've got a class, and a list of that class:
Java |
And I've got a function that takes a list of rectangles:
Code |
Now, is it possible that instead of doing this to generate a list of rectangles based on each persons bounding box:
Code |
I can just access the bounding box variable directly, something like:
Code |
to do the same thing?
I appreciate any help I get in regards to this :)

naura paxRank #2,843 · 502 reputationPosted Jul 7, 2009, 10:27 PM EDT
I don't think you can do that. You can create a list of a type.Person.rectangleBox is a datamember not a type, nor you can pass values to create a list (at least not with new keyword).
But maybe I'm wrong..