Search Unity

  1. Unity Asset Manager is now available in public beta. Try it out now and join the conversation here in the forums.
    Dismiss Notice

2d matrix math

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

  1. andyz

    andyz

    Joined:
    Jan 5, 2010
    Posts:
    2,279
    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