예제 #1
0
 public Rectanglei(Vector2i pos, int width, int height) : this(pos.X, pos.Y, width, height)
 {
 }
예제 #2
0
 public Rectanglei(Vector2i pos, Vector2i size) : this(pos, size.X, size.Y)
 {
 }
예제 #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;
 }