Search Unity

  1. Unity 2020.1 has been released.
    Dismiss Notice
  2. We are looking for feedback on the experimental Unity Safe Mode which is aiming to help you resolve compilation errors faster during project startup.
    Dismiss Notice
  3. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice

2d matrix math

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

  1. andyz

    andyz

    Joined:
    Jan 5, 2010
    Posts:
    1,312
    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
     
unityunity