public void Set(float angle) { float c = Mathf.Cos(angle); float s = Mathf.Sin(angle); Col1.x = c; Col2.x = -s; Col1.y = s; Col2.y = c; }
public static Mat22 operator +(Mat22 A, Mat22 B) { Mat22 C = new Mat22(); C.Set(A.Col1 + B.Col1, A.Col2 + B.Col2); return(C); }