Пример #1
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);
 }
Пример #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>
 /// <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);
 }
Пример #3
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;
 }
Пример #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
 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);
 }
Пример #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(Vector3 v)
 {
     X = new Half(v.X);
     Y = new Half(v.Y);
     Z = new Half(v.Z);
 }