public static Vector2 FlipUVXY(Vector2 source, TransformData transformData) { return(new Vector2(source.y, source.x)); }
public static Vector2 FlipUVY(Vector2 source, TransformData transformData) { source.y = 1 - source.y; return(source); }
public static Vector2 TranslateUV(Vector2 source, TransformData transformData) { return(source + transformData.Vector); }
public static Vector2 ScaleUV(Vector2 source, TransformData transformData) { return(new Vector2(source.x / transformData.Vector.x, source.y / transformData.Vector.y)); }
public static Vector2 RotateUV(Vector2 source, TransformData transformData) { return(transformData.Vector + (source - transformData.Vector).Rotate(transformData.Float1)); }