Example #1
0
 /// <summary>
 /// Constructs a new Vector4ui from the specified Vector3ui and w component.
 /// </summary>
 /// <param name="v">The Vector3ui to copy components from.</param>
 /// <param name="w">The w component of the new Vector4ui.</param>
 public Vector4ui(Vector3ui v, uint w)
 {
     X = v.X;
     Y = v.Y;
     Z = v.Z;
     W = w;
 }
Example #2
0
 /// <summary>
 /// Constructs a new Vector4ui from the given Vector3ui.
 /// The w component is initialized to 0.
 /// </summary>
 /// <param name="v">The Vector3ui to copy components from.</param>
 /// <remarks><seealso cref="Vector4ui(Vector3ui, uint)"/></remarks>
 public Vector4ui(Vector3ui v)
 {
     X = v.X;
     Y = v.Y;
     Z = v.Z;
     W = 0;
 }
Example #3
0
 /// <summary>
 /// Update minimum values.
 /// </summary>
 /// <param name="item"></param>
 /// <param name="currentMin"></param>
 public static void UpdateMin(this Vector3ui item, ref Vector3ui currentMin)
 {
     if (item.X < currentMin.X)
     {
         currentMin.X = item.X;
     }
     if (item.Y < currentMin.Y)
     {
         currentMin.Y = item.Y;
     }
     if (item.Z < currentMin.Z)
     {
         currentMin.Z = item.Z;
     }
 }
Example #4
0
 /// <summary>
 /// Update minimum values.
 /// </summary>
 /// <param name="item"></param>
 /// <param name="currentMax"></param>
 public static void UpdateMax(this Vector3ui item, ref Vector3ui currentMax)
 {
     if (currentMax.X < item.X)
     {
         currentMax.X = item.X;
     }
     if (currentMax.Y < item.Y)
     {
         currentMax.Y = item.Y;
     }
     if (currentMax.Z < item.Z)
     {
         currentMax.Z = item.Z;
     }
 }
Example #5
0
 /// <summary>
 /// Constructs a new instance.
 /// </summary>
 /// <param name="v">The Vector3ui to copy.</param>
 public Vector3i(Vector3ui v)
 {
     X = (int)v.X;
     Y = (int)v.Y;
     Z = (int)v.Z;
 }
Example #6
0
 /// <summary>
 /// Constructs a new Vector2f from the given Vector3ui.
 /// </summary>
 /// <param name="v">The Vector3ui to copy components from.</param>
 public Vector2f(Vector3ui vec)
 {
     X = vec.X;
     Y = vec.Y;
 }
Example #7
0
 /// <summary>
 /// Constructs a new Vector3d from the given Vector3ui.
 /// </summary>
 /// <param name="v">The Vector3ui to copy components from.</param>
 public Vector3d(Vector3ui vec)
 {
     X = vec.X;
     Y = vec.Y;
     Z = vec.Z;
 }
Example #8
0
 /// <summary>
 /// Constructs a new Vector2f from the given Vector3ui.
 /// </summary>
 /// <param name="v">The Vector3ui to copy components from.</param>
 public Vector2i(Vector3ui vec)
 {
     X = (int)vec.X;
     Y = (int)vec.Y;
 }
Example #9
0
 /// <summary>
 /// Constructs a new instance.
 /// </summary>
 /// <param name="v">The instance of Vector3ui to copy.</param>
 public Vector2ui(Vector3ui v)
 {
     X = v.X;
     Y = v.Y;
 }