3-component Vector of the Half type. Occupies 6 Byte total. More...
Public Member Functions | |
| Vector3h (Half x, Half y, Half z) | |
| The new Half3 instance will avoid conversion and copy directly from the Half parameters. | |
| Vector3h (Single x, Single y, Single z) | |
| The new Half3 instance will convert the 3 parameters into 16-bit half-precision floating-point. | |
| Vector3h (Single x, Single y, Single z, bool throwOnError) | |
| The new Half3 instance will convert the 3 parameters into 16-bit half-precision floating-point. | |
| Vector3h (Vector3 v) | |
| The new Half3 instance will convert the Vector3 into 16-bit half-precision floating-point. | |
| Vector3h (Vector3 v, bool throwOnError) | |
| The new Half3 instance will convert the Vector3 into 16-bit half-precision floating-point. | |
| Vector3h (ref Vector3 v) | |
| The new Half3 instance will convert the Vector3 into 16-bit half-precision floating-point. This is the fastest constructor. | |
| Vector3h (ref Vector3 v, bool throwOnError) | |
| The new Half3 instance will convert the Vector3 into 16-bit half-precision floating-point. | |
| Vector3h (Vector3d v) | |
| The new Half3 instance will convert the Vector3d into 16-bit half-precision floating-point. | |
| Vector3h (Vector3d v, bool throwOnError) | |
| The new Half3 instance will convert the Vector3d into 16-bit half-precision floating-point. | |
| Vector3h (ref Vector3d v) | |
| The new Half3 instance will convert the Vector3d into 16-bit half-precision floating-point. This is the faster constructor. | |
| Vector3h (ref Vector3d v, bool throwOnError) | |
| The new Half3 instance will convert the Vector3d into 16-bit half-precision floating-point. | |
| Vector3 | ToVector3 () |
| Returns this Half3 instance's contents as Vector3. | |
| Vector3d | ToVector3d () |
| Returns this Half3 instance's contents as Vector3d. | |
| Vector3h (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 and Z components of this instance by reading from a Stream. | |
| void | ToBinaryStream (BinaryWriter bin) |
| Writes the X,Y and Z components of this instance into a Stream. | |
| bool | Equals (Vector3h other) |
| Returns a value indicating whether this instance is equal to a specified OpenTK.Half3 vector. | |
| override string | ToString () |
| Returns a string that contains this Half3's numbers in human-legible form. | |
Static Public Member Functions | |
| static | operator Vector3h (Vector3 v3f) |
| Converts OpenTK.Vector3 to OpenTK.Half3. | |
| static | operator Vector3h (Vector3d v3d) |
| Converts OpenTK.Vector3d to OpenTK.Half3. | |
| static | operator Vector3 (Vector3h h3) |
| Converts OpenTK.Half3 to OpenTK.Vector3. | |
| static | operator Vector3d (Vector3h h3) |
| Converts OpenTK.Half3 to OpenTK.Vector3d. | |
| static byte[] | GetBytes (Vector3h h) |
| Returns the Half3 as an array of bytes. | |
| static Vector3h | FromBytes (byte[] value, int startIndex) |
| Converts an array of bytes into Half3. | |
Public Attributes | |
| Half | X |
| The X component of the Half3. | |
| Half | Y |
| The Y component of the Half3. | |
| Half | Z |
| The Z component of the Half3. | |
Static Public Attributes | |
| static readonly int | SizeInBytes = 6 |
| The size in bytes for an instance of the Half3 struct is 6. | |
Properties | |
| Vector2h | Xy [get, set] |
| Gets or sets an OpenTK.Vector2h with the X and Y components of this instance. | |
3-component Vector of the Half type. Occupies 6 Byte total.
Definition at line 37 of file Vector3h.cs.
The new Half3 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. |
Definition at line 60 of file Vector3h.cs.
| OpenTK.Vector3h.Vector3h | ( | Single | x, | |
| Single | y, | |||
| Single | z | |||
| ) |
The new Half3 instance will convert the 3 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. |
Definition at line 73 of file Vector3h.cs.
| OpenTK.Vector3h.Vector3h | ( | Single | x, | |
| Single | y, | |||
| Single | z, | |||
| bool | throwOnError | |||
| ) |
The new Half3 instance will convert the 3 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. | |
| throwOnError | Enable checks that will throw if the conversion result is not meaningful. |
Definition at line 87 of file Vector3h.cs.
| OpenTK.Vector3h.Vector3h | ( | Vector3 | v | ) |
The new Half3 instance will convert the Vector3 into 16-bit half-precision floating-point.
| v | OpenTK.Vector3 |
Definition at line 99 of file Vector3h.cs.
| OpenTK.Vector3h.Vector3h | ( | Vector3 | v, | |
| bool | throwOnError | |||
| ) |
The new Half3 instance will convert the Vector3 into 16-bit half-precision floating-point.
| v | OpenTK.Vector3 | |
| throwOnError | Enable checks that will throw if the conversion result is not meaningful. |
Definition at line 112 of file Vector3h.cs.
| OpenTK.Vector3h.Vector3h | ( | ref Vector3 | v | ) |
The new Half3 instance will convert the Vector3 into 16-bit half-precision floating-point. This is the fastest constructor.
| v | OpenTK.Vector3 |
Definition at line 124 of file Vector3h.cs.
| OpenTK.Vector3h.Vector3h | ( | ref Vector3 | v, | |
| bool | throwOnError | |||
| ) |
The new Half3 instance will convert the Vector3 into 16-bit half-precision floating-point.
| v | OpenTK.Vector3 | |
| throwOnError | Enable checks that will throw if the conversion result is not meaningful. |
Definition at line 136 of file Vector3h.cs.
| OpenTK.Vector3h.Vector3h | ( | Vector3d | v | ) |
The new Half3 instance will convert the Vector3d into 16-bit half-precision floating-point.
| v | OpenTK.Vector3d |
Definition at line 147 of file Vector3h.cs.
| OpenTK.Vector3h.Vector3h | ( | Vector3d | v, | |
| bool | throwOnError | |||
| ) |
The new Half3 instance will convert the Vector3d into 16-bit half-precision floating-point.
| v | OpenTK.Vector3d | |
| throwOnError | Enable checks that will throw if the conversion result is not meaningful. |
Definition at line 159 of file Vector3h.cs.
| OpenTK.Vector3h.Vector3h | ( | ref Vector3d | v | ) |
The new Half3 instance will convert the Vector3d into 16-bit half-precision floating-point. This is the faster constructor.
| v | OpenTK.Vector3d |
Definition at line 172 of file Vector3h.cs.
| OpenTK.Vector3h.Vector3h | ( | ref Vector3d | v, | |
| bool | throwOnError | |||
| ) |
The new Half3 instance will convert the Vector3d into 16-bit half-precision floating-point.
| v | OpenTK.Vector3d | |
| throwOnError | Enable checks that will throw if the conversion result is not meaningful. |
Definition at line 185 of file Vector3h.cs.
| OpenTK.Vector3h.Vector3h | ( | SerializationInfo | info, | |
| StreamingContext | context | |||
| ) |
Constructor used by ISerializable to deserialize the object.
| info | ||
| context |
Definition at line 281 of file Vector3h.cs.
| bool OpenTK.Vector3h.Equals | ( | Vector3h | other | ) |
Returns a value indicating whether this instance is equal to a specified OpenTK.Half3 vector.
| other | OpenTK.Half3 to compare to this instance.. |
Definition at line 327 of file Vector3h.cs.
| void OpenTK.Vector3h.FromBinaryStream | ( | BinaryReader | bin | ) |
Updates the X,Y and Z components of this instance by reading from a Stream.
| bin | A BinaryReader instance associated with an open Stream. |
Definition at line 304 of file Vector3h.cs.
| static Vector3h OpenTK.Vector3h.FromBytes | ( | byte[] | value, | |
| int | startIndex | |||
| ) | [static] |
Converts an array of bytes into Half3.
| value | A Half3 in it's byte[] representation. | |
| startIndex | The starting position within value. |
Definition at line 370 of file Vector3h.cs.
| static byte [] OpenTK.Vector3h.GetBytes | ( | Vector3h | h | ) | [static] |
Returns the Half3 as an array of bytes.
| h | The Half3 to convert. |
Definition at line 349 of file Vector3h.cs.
00350 { 00351 byte[] result = new byte[SizeInBytes]; 00352 00353 byte[] temp = Half.GetBytes(h.X); 00354 result[0] = temp[0]; 00355 result[1] = temp[1]; 00356 temp = Half.GetBytes(h.Y); 00357 result[2] = temp[0]; 00358 result[3] = temp[1]; 00359 temp = Half.GetBytes(h.Z); 00360 result[4] = temp[0]; 00361 result[5] = temp[1]; 00362 00363 return result; 00364 }
| void OpenTK.Vector3h.GetObjectData | ( | SerializationInfo | info, | |
| StreamingContext | context | |||
| ) |
Used by ISerialize to serialize the object.
| info | ||
| context |
Definition at line 291 of file Vector3h.cs.
Converts OpenTK.Half3 to OpenTK.Vector3.
| h3 | The Half3 to convert. |
Definition at line 246 of file Vector3h.cs.
Converts OpenTK.Half3 to OpenTK.Vector3d.
| h3 | The Half3 to convert. |
Definition at line 258 of file Vector3h.cs.
Converts OpenTK.Vector3d to OpenTK.Half3.
| v3d | The Vector3d to convert. |
Definition at line 238 of file Vector3h.cs.
00239 { 00240 return new Vector3h(v3d); 00241 }
Converts OpenTK.Vector3 to OpenTK.Half3.
| v3f | The Vector3 to convert. |
Definition at line 230 of file Vector3h.cs.
00231 { 00232 return new Vector3h(v3f); 00233 }
| void OpenTK.Vector3h.ToBinaryStream | ( | BinaryWriter | bin | ) |
Writes the X,Y and Z components of this instance into a Stream.
| bin | A BinaryWriter instance associated with an open Stream. |
Definition at line 313 of file Vector3h.cs.
| override string OpenTK.Vector3h.ToString | ( | ) |
Returns a string that contains this Half3's numbers in human-legible form.
Definition at line 337 of file Vector3h.cs.
| Vector3 OpenTK.Vector3h.ToVector3 | ( | ) |
Returns this Half3 instance's contents as Vector3.
Definition at line 210 of file Vector3h.cs.
| Vector3d OpenTK.Vector3h.ToVector3d | ( | ) |
readonly int OpenTK.Vector3h.SizeInBytes = 6 [static] |
The size in bytes for an instance of the Half3 struct is 6.
Definition at line 272 of file Vector3h.cs.
The X component of the Half3.
Definition at line 42 of file Vector3h.cs.
The Y component of the Half3.
Definition at line 45 of file Vector3h.cs.
The Z component of the Half3.
Definition at line 48 of file Vector3h.cs.
Vector2h OpenTK.Vector3h.Xy [get, set] |
Gets or sets an OpenTK.Vector2h with the X and Y components of this instance.
Definition at line 200 of file Vector3h.cs.
1.6.1