Exemple #1
0
 /// <summary>
 ///     Initializes a new instance of the <see cref="Vector4h" /> struct.
 /// </summary>
 /// <param name="v">The <see cref="Vector4" /> to convert.</param>
 public Vector4h(Vector4 v)
 {
     X = new Half(v.X);
     Y = new Half(v.Y);
     Z = new Half(v.Z);
     W = new Half(v.W);
 }
Exemple #2
0
 /// <summary>
 ///     Initializes a new instance of the <see cref="Vector4h" /> struct.
 /// </summary>
 /// <param name="x">The X component of the vector.</param>
 /// <param name="y">The Y component of the vector.</param>
 /// <param name="z">The Z component of the vector.</param>
 /// <param name="w">The W component of the vector.</param>
 public Vector4h(Half x, Half y, Half z, Half w)
 {
     X = x;
     Y = y;
     Z = z;
     W = w;
 }
Exemple #3
0
 /// <summary>
 ///     Initializes a new instance of the <see cref="Vector4h" /> struct.
 /// </summary>
 /// <param name="x">The X component of the vector.</param>
 /// <param name="y">The Y component of the vector.</param>
 /// <param name="z">The Z component of the vector.</param>
 /// <param name="w">The W component of the vector.</param>
 public Vector4h(float x, float y, float z, float w)
 {
     X = new Half(x);
     Y = new Half(y);
     Z = new Half(z);
     W = new Half(w);
 }
Exemple #4
0
 /// <summary>
 ///     Initializes a new instance of the <see cref="Vector4h" /> struct.
 /// </summary>
 /// <param name="value">The value that will initialize this instance.</param>
 public Vector4h(float value)
 {
     X = new Half(value);
     Y = new Half(value);
     Z = new Half(value);
     W = new Half(value);
 }
Exemple #5
0
 /// <summary>
 ///     Initializes a new instance of the <see cref="Vector4h" /> struct.
 /// </summary>
 /// <param name="value">The value that will initialize this instance.</param>
 public Vector4h(Half value)
 {
     X = value;
     Y = value;
     Z = value;
     W = value;
 }
Exemple #6
0
 /// <summary>
 ///     Initializes a new instance of the <see cref="Vector4h" /> struct.
 /// </summary>
 /// <param name="v">The <see cref="Vector4" /> to convert.</param>
 /// <param name="throwOnError">Enable checks that will throw if the conversion result is not meaningful.</param>
 public Vector4h(Vector4 v, bool throwOnError)
 {
     X = new Half(v.X, throwOnError);
     Y = new Half(v.Y, throwOnError);
     Z = new Half(v.Z, throwOnError);
     W = new Half(v.W, throwOnError);
 }
Exemple #7
0
 /// <summary>
 ///     Initializes a new instance of the <see cref="Vector4h" /> struct.
 /// </summary>
 /// <param name="x">The X component of the vector.</param>
 /// <param name="y">The Y component of the vector.</param>
 /// <param name="z">The Z component of the vector.</param>
 /// <param name="w">The W component of the vector.</param>
 /// <param name="throwOnError">Enable checks that will throw if the conversion result is not meaningful.</param>
 public Vector4h(float x, float y, float z, float w, bool throwOnError)
 {
     X = new Half(x, throwOnError);
     Y = new Half(y, throwOnError);
     Z = new Half(z, throwOnError);
     W = new Half(w, throwOnError);
 }
Exemple #8
0
 /// <summary>
 ///     Initializes a new instance of the <see cref="Vector2h" /> struct.
 /// </summary>
 /// <param name="x">The X component of the vector.</param>
 /// <param name="y">The Y component of the vector.</param>
 public Vector2h(Half x, Half y)
 {
     X = x;
     Y = y;
 }
Exemple #9
0
 /// <summary>
 ///     Initializes a new instance of the <see cref="Vector2h" /> struct.
 /// </summary>
 /// <param name="value">The value that will initialize this instance.</param>
 public Vector2h(float value)
 {
     X = new Half(value);
     Y = new Half(value);
 }
Exemple #10
0
 /// <summary>
 ///     Initializes a new instance of the <see cref="Vector2h" /> struct.
 /// </summary>
 /// <param name="value">The value that will initialize this instance.</param>
 public Vector2h(Half value)
 {
     X = value;
     Y = value;
 }
Exemple #11
0
 /// <summary>
 ///     Initializes a new instance of the <see cref="Vector3h" /> struct.
 ///     The new Half3 instance will convert the 3 parameters into 16-bit half-precision floating-point.
 /// </summary>
 /// <param name="x">The X component of the vector.</param>
 /// <param name="y">The Y component of the vector.</param>
 /// <param name="z">The Z component of the vector.</param>
 public Vector3h(float x, float y, float z)
 {
     X = new Half(x);
     Y = new Half(y);
     Z = new Half(z);
 }
Exemple #12
0
 /// <summary>
 ///     Initializes a new instance of the <see cref="Vector3h" /> struct.
 /// </summary>
 /// <param name="x">The X component of the vector.</param>
 /// <param name="y">The Y component of the vector.</param>
 /// <param name="z">The Z component of the vector.</param>
 public Vector3h(Half x, Half y, Half z)
 {
     X = x;
     Y = y;
     Z = z;
 }
Exemple #13
0
 /// <summary>
 ///     Initializes a new instance of the <see cref="Vector2h" /> struct.
 /// </summary>
 /// <param name="v">The <see cref="Vector2" /> to convert.</param>
 public Vector2h(Vector2 v)
 {
     X = new Half(v.X);
     Y = new Half(v.Y);
 }
Exemple #14
0
 /// <summary>
 ///     Initializes a new instance of the <see cref="Vector3h" /> struct.
 /// </summary>
 /// <param name="v">The <see cref="Vector3" /> to convert.</param>
 public Vector3h(Vector3 v)
 {
     X = new Half(v.X);
     Y = new Half(v.Y);
     Z = new Half(v.Z);
 }
Exemple #15
0
 /// <summary>
 ///     Initializes a new instance of the <see cref="Vector2h" /> struct.
 /// </summary>
 /// <param name="x">The X component of the vector.</param>
 /// <param name="y">The Y component of the vector.</param>
 public Vector2h(float x, float y)
 {
     X = new Half(x);
     Y = new Half(y);
 }
Exemple #16
0
 /// <summary>
 ///     Initializes a new instance of the <see cref="Vector2h" /> struct.
 /// </summary>
 /// <param name="x">The X component of the vector.</param>
 /// <param name="y">The Y component of the vector.</param>
 /// <param name="throwOnError">Enable checks that will throw if the conversion result is not meaningful.</param>
 public Vector2h(float x, float y, bool throwOnError)
 {
     X = new Half(x, throwOnError);
     Y = new Half(y, throwOnError);
 }
Exemple #17
0
 /// <summary>
 ///     Initializes a new instance of the <see cref="Vector3h" /> struct.
 /// </summary>
 /// <param name="v">The <see cref="Vector3" /> to convert.</param>
 /// <param name="throwOnError">Enable checks that will throw if the conversion result is not meaningful.</param>
 public Vector3h(Vector3 v, bool throwOnError)
 {
     X = new Half(v.X, throwOnError);
     Y = new Half(v.Y, throwOnError);
     Z = new Half(v.Z, throwOnError);
 }
Exemple #18
0
 /// <summary>
 ///     Initializes a new instance of the <see cref="Vector2h" /> struct.
 /// </summary>
 /// <param name="v">The <see cref="Vector2" /> to convert.</param>
 /// <param name="throwOnError">Enable checks that will throw if the conversion result is not meaningful.</param>
 public Vector2h(Vector2 v, bool throwOnError)
 {
     X = new Half(v.X, throwOnError);
     Y = new Half(v.Y, throwOnError);
 }
Exemple #19
0
 /// <summary>
 ///     Initializes a new instance of the <see cref="Vector3h" /> struct.
 /// </summary>
 /// <param name="value">The value that will initialize this instance.</param>
 public Vector3h(Half value)
 {
     X = value;
     Y = value;
     Z = value;
 }