Exemple #1
0
 public Rectanglei(Vector2i pos, int width, int height) : this(pos.X, pos.Y, width, height)
 {
 }
Exemple #2
0
 public Rectanglei(Vector2i pos, Vector2i size) : this(pos, size.X, size.Y)
 {
 }
Exemple #3
0
 /// <summary>
 /// Constructs a new Vector2 from the given Vector2i.
 /// </summary>
 /// <param name="v">The Vector2i to copy components from.</param>
 public Vector2(Vector2i vec)
 {
     X = vec.X;
     Y = vec.Y;
 }