pyovr icon indicating copy to clipboard operation
pyovr copied to clipboard

Resolve schizophrenic nature of ovr.Matrix4f

Open cmbruns opened this issue 9 years ago • 1 comments

Is Matrix4f a 4x4 or a 1x16 container?

  • 4x4 seems semantically correct.
  • We already want to use methods like glLoadMatrixf(), that want a flat list of 16 numbers.

cmbruns avatar Oct 03 '15 16:10 cmbruns

None of the solutions here... http://stackoverflow.com/questions/952914/making-a-flat-list-out-of-list-of-lists-in-python ...look quite straightforward enough to expect users to keep using them. So I think I want to do 1 - change getelement access to fetch a 4x4 matrix. 2 - create a convenience method .toFlatList(), say. But I think the result might be the transpose of what we are delivering now, with list(Matrix4f). So the examples would need to change in two ways.

cmbruns-hhmi avatar Oct 08 '15 13:10 cmbruns-hhmi