If you are going to use a preexisting linear algebra library (for matrix multiplication) so that you can transform your vectors, and if you are going to do this a lot in a tight loop (e.g., if you're making a game or something like that), then look up the docs, and see if it requires an array, or if it already provides its own vector data structure, and use that - otherwise you'll likely have to copy the values to convert between the formats, or resort to some other similarly ugly workaround.
↧