Search Unity

2d matrix math

Discussion in '2D Experimental Preview' started by andyz, Aug 20, 2018.

  1. andyz


    Jan 5, 2010
    The new SVG (Vector graphics) package contains code for a 'Matrix2D' which is useful!
    But the new maths library does not exactly have an equivalent - it has 2x2, 3x3, 4x4.
    2x2 could be used if no translation but it is perhaps a 2x3? you need for 2d to be optimal and handle scale/rotate/translate.

    Anyway perhaps math lib could include one in future or Unity could incorporate one into the API as it is just useful - until then find in the SVG importer