예제 #1
0
 public static void setWorld(this Transform transform, UMatrix matrix)
 {
     transform.localScale = matrix.getScale();
     transform.rotation   = matrix.getRotation();
     transform.position   = matrix.getPosition();
 }
예제 #2
0
 public UMatrix(UMatrix source)
 {
     this.m = source.m;
 }
예제 #3
0
 public void set3x3(UMatrix pm)
 {
     m.m00 = pm.m00; m.m01 = pm.m01; m.m02 = pm.m02;
     m.m10 = pm.m10; m.m11 = pm.m11; m.m12 = pm.m12;
     m.m20 = pm.m20; m.m21 = pm.m21; m.m22 = pm.m22;
 }
예제 #4
0
 public static void set(this Transform transform, UMatrix matrix)
 {
     setWorld(transform, matrix);
 }
예제 #5
0
 public void preApplay(UMatrix left)
 {
     set(left.m * m);
 }
예제 #6
0
 public void applay(UMatrix source)
 {
     m *= source.m;
 }
예제 #7
0
 public void set(UMatrix source)
 {
     m = source.m;
 }