示例#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;
 }
示例#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;
 }
示例#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;
     }
 }
示例#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;
     }
 }
示例#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;
 }
示例#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;
 }
示例#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;
 }
示例#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;
 }
示例#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;
 }