예제 #1
0
 public static Vector2 FlipUVXY(Vector2 source, TransformData transformData)
 {
     return(new Vector2(source.y, source.x));
 }
예제 #2
0
 public static Vector2 FlipUVY(Vector2 source, TransformData transformData)
 {
     source.y = 1 - source.y;
     return(source);
 }
예제 #3
0
 public static Vector2 TranslateUV(Vector2 source, TransformData transformData)
 {
     return(source + transformData.Vector);
 }
예제 #4
0
 public static Vector2 ScaleUV(Vector2 source, TransformData transformData)
 {
     return(new Vector2(source.x / transformData.Vector.x, source.y / transformData.Vector.y));
 }
예제 #5
0
 public static Vector2 RotateUV(Vector2 source, TransformData transformData)
 {
     return(transformData.Vector + (source - transformData.Vector).Rotate(transformData.Float1));
 }