示例#1
0
 public Vector3h(Vector3 v)
 {
     X = new Half(v.X);
     Y = new Half(v.Y);
     Z = new Half(v.Z);
 }
示例#2
0
 /// <summary>
 /// The new Half3 instance will convert the 3 parameters into 16-Bit Half precision floating point.
 /// </summary>
 /// <param name="x">32-Bit Single precision floating point number.</param>
 /// <param name="y">32-Bit Single precision floating point number.</param>
 /// <param name="z">32-Bit Single precision floating point number.</param>
 public Vector3h(Single x, Single y, Single z)
 {
     X = new Half(x);
     Y = new Half(y);
     Z = new Half(z);
 }
示例#3
0
 /// <summary>
 /// The new Half3 instance will convert the 3 parameters into 16-Bit Half precision floating point.
 /// </summary>
 /// <param name="x">32-Bit Single precision floating point number.</param>
 /// <param name="y">32-Bit Single precision floating point number.</param>
 /// <param name="z">32-Bit Single precision floating point number.</param>
 /// <param name="throwOnError">Enable checks that will throw if the conversion result is not meaningful.</param>
 public Vector3h(Single x, Single y, Single z, bool throwOnError)
 {
     X = new Half(x, throwOnError);
     Y = new Half(y, throwOnError);
     Z = new Half(z, throwOnError);
 }
示例#4
0
 /// <summary>Constructor used by ISerializable to deserialize the object.</summary>
 /// <param name="info"></param>
 /// <param name="context"></param>
 public Vector3h(SerializationInfo info, StreamingContext context)
 {
     this.X = (Half)info.GetValue("X", typeof(Half));
     this.Y = (Half)info.GetValue("Y", typeof(Half));
     this.Z = (Half)info.GetValue("Z", typeof(Half));
 }
示例#5
0
 /// <summary>
 /// The new Half3 instance will avoid conversion and copy directly from the Half parameters.
 /// </summary>
 /// <param name="x">An Half instance of a 16-Bit half precision floating point number.</param>
 /// <param name="y">An Half instance of a 16-Bit half precision floating point number.</param>
 /// <param name="z">An Half instance of a 16-Bit half precision floating point number.</param>
 public Vector3h(Half x, Half y, Half z)
 {
     this.X = x;
     this.Y = y;
     this.Z = z;
 }
示例#6
0
 public Vector3h(ref Vector3d v)
 {
     X = new Half(v.X);
     Y = new Half(v.Y);
     Z = new Half(v.Z);
 }
示例#7
0
 public Vector3h(ref Vector3d v, bool throwOnError)
 {
     X = new Half(v.X, throwOnError);
     Y = new Half(v.Y, throwOnError);
     Z = new Half(v.Z, throwOnError);
 }
示例#8
0
 public Vector2h(Vector2 v)
 {
     X = new Half(v.X);
     Y = new Half(v.Y);
 }
示例#9
0
 public Vector2h(Vector2 v, bool throwOnError)
 {
     X = new Half(v.X, throwOnError);
     Y = new Half(v.Y, throwOnError);
 }
示例#10
0
 /// <summary>
 /// The new Half2 instance will convert the 2 parameters into 16-bit half-precision floating-point.
 /// </summary>
 /// <param name="x">32-bit single-precision floating-point number.</param>
 /// <param name="y">32-bit single-precision floating-point number.</param>
 public Vector2h(Single x, Single y)
 {
     X = new Half(x);
     Y = new Half(y);
 }
示例#11
0
 /// <summary>
 /// The new Half2 instance will convert the 2 parameters into 16-bit half-precision floating-point.
 /// </summary>
 /// <param name="x">32-bit single-precision floating-point number.</param>
 /// <param name="y">32-bit single-precision floating-point number.</param>
 /// <param name="throwOnError">Enable checks that will throw if the conversion result is not meaningful.</param>
 public Vector2h(Single x, Single y, bool throwOnError)
 {
     X = new Half(x, throwOnError);
     Y = new Half(y, throwOnError);
 }
示例#12
0
 /// <summary>
 /// The new Half2 instance will avoid conversion and copy directly from the Half parameters.
 /// </summary>
 /// <param name="x">An Half instance of a 16-bit half-precision floating-point number.</param>
 /// <param name="y">An Half instance of a 16-bit half-precision floating-point number.</param>
 public Vector2h(Half x, Half y)
 {
     X = x;
     Y = y;
 }
示例#13
0
 public Vector2h(ref Vector2d v)
 {
     X = new Half(v.X);
     Y = new Half(v.Y);
 }
示例#14
0
 /// <summary>
 /// Constructs a new instance.
 /// </summary>
 /// <param name="value">The value that will initialize this instance.</param>
 public Vector2h(Single value)
 {
     X = new Half(value);
     Y = new Half(value);
 }
示例#15
0
 /// <summary>
 /// Constructs a new instance.
 /// </summary>
 /// <param name="value">The value that will initialize this instance.</param>
 public Vector2h(Half value)
 {
     X = value;
     Y = value;
 }
示例#16
0
 /// <summary>
 /// Constructs a new instance.
 /// </summary>
 /// <param name="value">The value that will initialize this instance.</param>
 public Vector3h(Half value)
 {
     X = value;
     Y = value;
     Z = value;
 }