Search Unity

Unity.mathmatics half2 missing operator + and operator +=

Discussion in 'Entity Component System' started by jbooth, Jan 23, 2019.

  1. jbooth

    jbooth

    Joined:
    Jan 6, 2014
    Posts:
    5,461
    Likely missing more, but:

    Code (CSharp):
    1. half2 one = new half2(1,1);
    2. half2 two = new half2(1,1);
    3.  
    4. half2 result = one + two; // won't compile
    5. one += two; // won't compile
    6.  
    7. half2 result2 = new half2(one.x + two.x, one.y + two.y); // compiles.
    8.