示例#1
0
 /// <summary>
 ///     Initializes a new instance of the <see cref="Half2" /> structure.
 /// </summary>
 /// <param name="value">The value to set for both the X and Y components.</param>
 public Half2(Half value)
 {
     X = value;
     Y = value;
 }
示例#2
0
 /// <summary>
 ///     Initializes a new instance of the <see cref="Half2" /> structure.
 /// </summary>
 /// <param name="value">The value to set for both the X and Y components.</param>
 public Half2(float value)
 {
     X = (Half)value;
     Y = (Half)value;
 }
示例#3
0
 /// <summary>
 ///     Initializes a new instance of the <see cref="Half2" /> structure.
 /// </summary>
 /// <param name="x">The X component.</param>
 /// <param name="y">The Y component.</param>
 public Half2(Half x, Half y)
 {
     X = x;
     Y = y;
 }
示例#4
0
 /// <summary>
 ///     Initializes a new instance of the <see cref="Half2" /> structure.
 /// </summary>
 /// <param name="x">The X component.</param>
 /// <param name="y">The Y component.</param>
 public Half2(float x, float y)
 {
     X = (Half)x;
     Y = (Half)y;
 }