public TkVector2h(TkVector2 v) { X = new Half(v.X); Y = new Half(v.Y); }
/// <summary> /// The new Half2 instance will convert the TkVector2 into 16-bit half-precision floating-point. /// </summary> /// <param name="v">OpenTK.TkVector2</param> /// <param name="throwOnError">Enable checks that will throw if the conversion result is not meaningful.</param> public TkVector2h(ref TkVector2 v, bool throwOnError) { X = new Half(v.X, throwOnError); Y = new Half(v.Y, throwOnError); }