Skip to content

Commit

Permalink
small clean
Browse files Browse the repository at this point in the history
  • Loading branch information
berichan committed Feb 3, 2022
1 parent dc2ab40 commit 9782a80
Showing 1 changed file with 21 additions and 21 deletions.
42 changes: 21 additions & 21 deletions PLAWarper/PLAWarpWindow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -142,27 +142,6 @@ private void label6_Click(object sender, EventArgs e)

}

public struct Vector3
{
public float x, y, z;

public override string ToString()
{
return $"{x},{y},{z}";
}

public static Vector3 FromString(string s)
{
var spl = s.Split(',');
Vector3 v = new Vector3();
v.x = float.Parse(spl[0]);
v.y = float.Parse(spl[1]);
v.z = float.Parse(spl[2]);

return v;
}
}

private void label2_Click(object sender, EventArgs e)
{

Expand Down Expand Up @@ -231,4 +210,25 @@ private void button9_Click(object sender, EventArgs e)
}
}
}

public struct Vector3
{
public float x, y, z;

public override string ToString()
{
return $"{x},{y},{z}";
}

public static Vector3 FromString(string s)
{
var spl = s.Split(',');
Vector3 v = new Vector3();
v.x = float.Parse(spl[0]);
v.y = float.Parse(spl[1]);
v.z = float.Parse(spl[2]);

return v;
}
}
}

0 comments on commit 9782a80

Please sign in to comment.