4-component Vector of the Half type. Occupies 8 Byte total. More...
Public Member Functions | |
| Vector4h (Half x, Half y, Half z, Half w) | |
| The new Half4 instance will avoid conversion and copy directly from the Half parameters. | |
| Vector4h (Single x, Single y, Single z, Single w) | |
| The new Half4 instance will convert the 4 parameters into 16-bit half-precision floating-point. | |
| Vector4h (Single x, Single y, Single z, Single w, bool throwOnError) | |
| The new Half4 instance will convert the 4 parameters into 16-bit half-precision floating-point. | |
| Vector4h (Vector4 v) | |
| The new Half4 instance will convert the Vector4 into 16-bit half-precision floating-point. | |
| Vector4h (Vector4 v, bool throwOnError) | |
| The new Half4 instance will convert the Vector4 into 16-bit half-precision floating-point. | |
| Vector4h (ref Vector4 v) | |
| The new Half4 instance will convert the Vector4 into 16-bit half-precision floating-point. This is the fastest constructor. | |
| Vector4h (ref Vector4 v, bool throwOnError) | |
| The new Half4 instance will convert the Vector4 into 16-bit half-precision floating-point. | |
| Vector4h (Vector4d v) | |
| The new Half4 instance will convert the Vector4d into 16-bit half-precision floating-point. | |
| Vector4h (Vector4d v, bool throwOnError) | |
| The new Half4 instance will convert the Vector4d into 16-bit half-precision floating-point. | |
| Vector4h (ref Vector4d v) | |
| The new Half4 instance will convert the Vector4d into 16-bit half-precision floating-point. This is the faster constructor. | |
| Vector4h (ref Vector4d v, bool throwOnError) | |
| The new Half4 instance will convert the Vector4d into 16-bit half-precision floating-point. | |
| Vector4 | ToVector4 () |
| Returns this Half4 instance's contents as Vector4. | |
| Vector4d | ToVector4d () |
| Returns this Half4 instance's contents as Vector4d. | |
| Vector4h (SerializationInfo info, StreamingContext context) | |
| Constructor used by ISerializable to deserialize the object. | |
| void | GetObjectData (SerializationInfo info, StreamingContext context) |
| Used by ISerialize to serialize the object. | |
| void | FromBinaryStream (BinaryReader bin) |
| Updates the X,Y,Z and W components of this instance by reading from a Stream. | |
| void | ToBinaryStream (BinaryWriter bin) |
| Writes the X,Y,Z and W components of this instance into a Stream. | |
| bool | Equals (Vector4h other) |
| Returns a value indicating whether this instance is equal to a specified OpenTK.Half4 vector. | |
| override string | ToString () |
| Returns a string that contains this Half4's numbers in human-legible form. | |
Static Public Member Functions | |
| static | operator Vector4h (Vector4 v4f) |
| Converts OpenTK.Vector4 to OpenTK.Half4. | |
| static | operator Vector4h (Vector4d v4d) |
| Converts OpenTK.Vector4d to OpenTK.Half4. | |
| static | operator Vector4 (Vector4h h4) |
| Converts OpenTK.Half4 to OpenTK.Vector4. | |
| static | operator Vector4d (Vector4h h4) |
| Converts OpenTK.Half4 to OpenTK.Vector4d. | |
| static byte[] | GetBytes (Vector4h h) |
| Returns the Half4 as an array of bytes. | |
| static Vector4h | FromBytes (byte[] value, int startIndex) |
| Converts an array of bytes into Half4. | |
Public Attributes | |
| Half | X |
| The X component of the Half4. | |
| Half | Y |
| The Y component of the Half4. | |
| Half | Z |
| The Z component of the Half4. | |
| Half | W |
| The W component of the Half4. | |
Static Public Attributes | |
| static readonly int | SizeInBytes = 8 |
| The size in bytes for an instance of the Half4 struct is 8. | |
Properties | |
| Vector2h | Xy [get, set] |
| Gets or sets an OpenTK.Vector2h with the X and Y components of this instance. | |
| Vector3h | Xyz [get, set] |
| Gets or sets an OpenTK.Vector3h with the X, Y and Z components of this instance. | |
4-component Vector of the Half type. Occupies 8 Byte total.
Definition at line 37 of file Vector4h.cs.
The new Half4 instance will avoid conversion and copy directly from the Half parameters.
| x | An Half instance of a 16-bit half-precision floating-point number. | |
| y | An Half instance of a 16-bit half-precision floating-point number. | |
| z | An Half instance of a 16-bit half-precision floating-point number. | |
| w | An Half instance of a 16-bit half-precision floating-point number. |
Definition at line 64 of file Vector4h.cs.
| OpenTK.Vector4h.Vector4h | ( | Single | x, | |
| Single | y, | |||
| Single | z, | |||
| Single | w | |||
| ) |
The new Half4 instance will convert the 4 parameters into 16-bit half-precision floating-point.
| x | 32-bit single-precision floating-point number. | |
| y | 32-bit single-precision floating-point number. | |
| z | 32-bit single-precision floating-point number. | |
| w | 32-bit single-precision floating-point number. |
Definition at line 79 of file Vector4h.cs.
| OpenTK.Vector4h.Vector4h | ( | Single | x, | |
| Single | y, | |||
| Single | z, | |||
| Single | w, | |||
| bool | throwOnError | |||
| ) |
The new Half4 instance will convert the 4 parameters into 16-bit half-precision floating-point.
| x | 32-bit single-precision floating-point number. | |
| y | 32-bit single-precision floating-point number. | |
| z | 32-bit single-precision floating-point number. | |
| w | 32-bit single-precision floating-point number. | |
| throwOnError | Enable checks that will throw if the conversion result is not meaningful. |
Definition at line 95 of file Vector4h.cs.
| OpenTK.Vector4h.Vector4h | ( | Vector4 | v | ) |
The new Half4 instance will convert the Vector4 into 16-bit half-precision floating-point.
| v | OpenTK.Vector4 |
Definition at line 108 of file Vector4h.cs.
| OpenTK.Vector4h.Vector4h | ( | Vector4 | v, | |
| bool | throwOnError | |||
| ) |
The new Half4 instance will convert the Vector4 into 16-bit half-precision floating-point.
| v | OpenTK.Vector4 | |
| throwOnError | Enable checks that will throw if the conversion result is not meaningful. |
Definition at line 122 of file Vector4h.cs.
| OpenTK.Vector4h.Vector4h | ( | ref Vector4 | v | ) |
The new Half4 instance will convert the Vector4 into 16-bit half-precision floating-point. This is the fastest constructor.
| v | OpenTK.Vector4 |
Definition at line 135 of file Vector4h.cs.
| OpenTK.Vector4h.Vector4h | ( | ref Vector4 | v, | |
| bool | throwOnError | |||
| ) |
The new Half4 instance will convert the Vector4 into 16-bit half-precision floating-point.
| v | OpenTK.Vector4 | |
| throwOnError | Enable checks that will throw if the conversion result is not meaningful. |
Definition at line 148 of file Vector4h.cs.
| OpenTK.Vector4h.Vector4h | ( | Vector4d | v | ) |
The new Half4 instance will convert the Vector4d into 16-bit half-precision floating-point.
| v | OpenTK.Vector4d |
Definition at line 160 of file Vector4h.cs.
| OpenTK.Vector4h.Vector4h | ( | Vector4d | v, | |
| bool | throwOnError | |||
| ) |
The new Half4 instance will convert the Vector4d into 16-bit half-precision floating-point.
| v | OpenTK.Vector4d | |
| throwOnError | Enable checks that will throw if the conversion result is not meaningful. |
Definition at line 173 of file Vector4h.cs.
| OpenTK.Vector4h.Vector4h | ( | ref Vector4d | v | ) |
The new Half4 instance will convert the Vector4d into 16-bit half-precision floating-point. This is the faster constructor.
| v | OpenTK.Vector4d |
Definition at line 187 of file Vector4h.cs.
| OpenTK.Vector4h.Vector4h | ( | ref Vector4d | v, | |
| bool | throwOnError | |||
| ) |
The new Half4 instance will convert the Vector4d into 16-bit half-precision floating-point.
| v | OpenTK.Vector4d | |
| throwOnError | Enable checks that will throw if the conversion result is not meaningful. |
Definition at line 201 of file Vector4h.cs.
| OpenTK.Vector4h.Vector4h | ( | SerializationInfo | info, | |
| StreamingContext | context | |||
| ) |
Constructor used by ISerializable to deserialize the object.
| info | ||
| context |
Definition at line 306 of file Vector4h.cs.
| bool OpenTK.Vector4h.Equals | ( | Vector4h | other | ) |
Returns a value indicating whether this instance is equal to a specified OpenTK.Half4 vector.
| other | OpenTK.Half4 to compare to this instance.. |
Definition at line 356 of file Vector4h.cs.
| void OpenTK.Vector4h.FromBinaryStream | ( | BinaryReader | bin | ) |
Updates the X,Y,Z and W components of this instance by reading from a Stream.
| bin | A BinaryReader instance associated with an open Stream. |
Definition at line 331 of file Vector4h.cs.
| static Vector4h OpenTK.Vector4h.FromBytes | ( | byte[] | value, | |
| int | startIndex | |||
| ) | [static] |
Converts an array of bytes into Half4.
| value | A Half4 in it's byte[] representation. | |
| startIndex | The starting position within value. |
Definition at line 402 of file Vector4h.cs.
| static byte [] OpenTK.Vector4h.GetBytes | ( | Vector4h | h | ) | [static] |
Returns the Half4 as an array of bytes.
| h | The Half4 to convert. |
Definition at line 378 of file Vector4h.cs.
00379 { 00380 byte[] result = new byte[SizeInBytes]; 00381 00382 byte[] temp = Half.GetBytes(h.X); 00383 result[0] = temp[0]; 00384 result[1] = temp[1]; 00385 temp = Half.GetBytes(h.Y); 00386 result[2] = temp[0]; 00387 result[3] = temp[1]; 00388 temp = Half.GetBytes(h.Z); 00389 result[4] = temp[0]; 00390 result[5] = temp[1]; 00391 temp = Half.GetBytes(h.W); 00392 result[6] = temp[0]; 00393 result[7] = temp[1]; 00394 00395 return result; 00396 }
| void OpenTK.Vector4h.GetObjectData | ( | SerializationInfo | info, | |
| StreamingContext | context | |||
| ) |
Converts OpenTK.Half4 to OpenTK.Vector4.
| h4 | The Half4 to convert. |
Definition at line 269 of file Vector4h.cs.
Converts OpenTK.Half4 to OpenTK.Vector4d.
| h4 | The Half4 to convert. |
Definition at line 282 of file Vector4h.cs.
Converts OpenTK.Vector4d to OpenTK.Half4.
| v4d | The Vector4d to convert. |
Definition at line 261 of file Vector4h.cs.
00262 { 00263 return new Vector4h(v4d); 00264 }
Converts OpenTK.Vector4 to OpenTK.Half4.
| v4f | The Vector4 to convert. |
Definition at line 253 of file Vector4h.cs.
00254 { 00255 return new Vector4h(v4f); 00256 }
| void OpenTK.Vector4h.ToBinaryStream | ( | BinaryWriter | bin | ) |
Writes the X,Y,Z and W components of this instance into a Stream.
| bin | A BinaryWriter instance associated with an open Stream. |
Definition at line 341 of file Vector4h.cs.
| override string OpenTK.Vector4h.ToString | ( | ) |
| Vector4 OpenTK.Vector4h.ToVector4 | ( | ) |
Returns this Half4 instance's contents as Vector4.
Definition at line 233 of file Vector4h.cs.
| Vector4d OpenTK.Vector4h.ToVector4d | ( | ) |
readonly int OpenTK.Vector4h.SizeInBytes = 8 [static] |
The size in bytes for an instance of the Half4 struct is 8.
Definition at line 297 of file Vector4h.cs.
The W component of the Half4.
Definition at line 51 of file Vector4h.cs.
The X component of the Half4.
Definition at line 42 of file Vector4h.cs.
The Y component of the Half4.
Definition at line 45 of file Vector4h.cs.
The Z component of the Half4.
Definition at line 48 of file Vector4h.cs.
Vector2h OpenTK.Vector4h.Xy [get, set] |
Gets or sets an OpenTK.Vector2h with the X and Y components of this instance.
Definition at line 217 of file Vector4h.cs.
Vector3h OpenTK.Vector4h.Xyz [get, set] |
Gets or sets an OpenTK.Vector3h with the X, Y and Z components of this instance.
Definition at line 223 of file Vector4h.cs.
1.6.1