yeahrb/yeah

Web::Display 3D transformations

aostrega opened this issue · 2 comments

Make Web::Display's #translate, #scale and #rotate operations work in three dimensions, rather than two.

This will change Display#rotate's interface.

After taking a closer look at the problem, it is apparent that this would not be very practical for a Canvas-based Display. There will be an alternative WebGL-based Display that will provide 3D transformations & draw methods. It is possible to produce 3D graphics with the Canvas-based Display, though that functionality is best kept outside of that object.

I am still leaning toward changing #rotate to accept a Vector, like #translate and #scale do. The existing #rotate would be renamed to #rotate_z.

I am still leaning toward changing #rotate to accept a Vector, like #translate and #scale do. The existing #rotate would be renamed to #rotate_z.

Implemented on master.