Quantcast
Channel: User Filip Milovanović - Software Engineering Stack Exchange
Viewing all articles
Browse latest Browse all 178

Comment by Filip Milovanović on Representing vectors as arrays of points vs. as data structures

$
0
0
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.

Viewing all articles
Browse latest Browse all 178

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>