Ejemplo n.º 1
0
 /// <summary>
 ///     Initializes a new instance of the <see cref="Vector3i" /> struct.
 /// </summary>
 /// <param name="v">The <see cref="Vector2i" /> to copy components from.</param>
 /// <param name="z">The z component of the new Vector3.</param>
 public Vector3i(Vector2i v, int z)
 {
     X = v.X;
     Y = v.Y;
     Z = z;
 }
Ejemplo n.º 2
0
 /// <summary>
 ///     Initializes a new instance of the <see cref="Vector3i" /> struct.
 /// </summary>
 /// <param name="v">The <see cref="Vector2i" /> to copy components from.</param>
 public Vector3i(Vector2i v)
 {
     X = v.X;
     Y = v.Y;
     Z = 0;
 }