ungerik / go3d

A performance oriented 2D/3D math package for Go
MIT License
310 stars 49 forks source link

Add Array() method #8

Closed alexozer closed 10 years ago

alexozer commented 10 years ago

See if you like this way to do it.

ungerik commented 10 years ago

I don't think that this implementation is a good idea, because it allocates memory which may be even slower than copying the data.

ungerik commented 10 years ago

I have solved the problem by re-interpreting the bytes via the unsafe package.