Beispiel #1
0
 get => Math.Sqrt(Math.Pow(v.x - w.x, 2) + (Math.Pow(v.y - w.y, 2)));
 return(new Vector2(v.x, v.y));
Beispiel #3
0
 public static implicit operator Vertex((float x, float y, float z) v) => new Vertex(v.x, v.y, v.z);
Beispiel #4
0
 public static implicit operator Vector((double x, double y) v) => new Vector(v.x, v.y);
Beispiel #5
0
 v.x = Mathf.RoundToInt(v.x / value) * value;
Beispiel #6
0
 v.x = Mathf.Clamp(v.x, Mathf.Min(a.x, b.x), Mathf.Max(a.x, b.x));
Beispiel #7
0
 v.x = Mathf.Clamp(v.x, min.x, max.x);
 return(new Vector3(v.x, v.z, v.y));