Exemplo n.º 1
0
 public static Vector3 RoundTo(Vector3 v1, Vector3 v2)
 {
     return(new Vector3(RoundingHelper.RoundTo(v1.x, v2.x), RoundingHelper.RoundTo(v1.y, v2.y), RoundingHelper.RoundTo(v1.z, v2.z)));
 }
Exemplo n.º 2
0
 public static Vector2 RoundTo(Vector2 v1, Vector2 v2)
 {
     return(new Vector2(RoundingHelper.RoundTo(v1.x, v2.x), RoundingHelper.RoundTo(v1.y, v2.y)));
 }