/// <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 TkVector3h(Single x, Single y, Single z) { X = new Half(x); Y = new Half(y); Z = new Half(z); }
/// <summary> /// Constructs a new instance. /// </summary> /// <param name="value">The value that will initialize this instance.</param> public TkVector3h(Single value) { X = new Half(value); Y = new Half(value); Z = new Half(value); }
/// <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 TkVector3h(Half x, Half y, Half z) { this.X = x; this.Y = y; this.Z = z; }
/// <summary> /// Constructs a new instance. /// </summary> /// <param name="value">The value that will initialize this instance.</param> public TkVector3h(Half value) { X = value; Y = value; Z = value; }
/// <summary>Constructor used by ISerializable to deserialize the object.</summary> /// <param name="info"></param> /// <param name="context"></param> public TkVector3h(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)); }
public TkVector3h(ref TkVector3 v, bool throwOnError) { X = new Half(v.X, throwOnError); Y = new Half(v.Y, throwOnError); Z = new Half(v.Z, throwOnError); }
/// <summary> /// The new Half3 instance will convert the TkVector3 into 16-bit half-precision floating-point. /// This is the fastest constructor. /// </summary> /// <param name="v">OpenTK.TkVector3</param> public TkVector3h(ref TkVector3 v) { X = new Half(v.X); Y = new Half(v.Y); Z = new Half(v.Z); }
/// <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 TkVector3h(Single x, Single y, Single z, bool throwOnError) { X = new Half(x, throwOnError); Y = new Half(y, throwOnError); Z = new Half(z, throwOnError); }