The Open Toolkit library
1.0
|
3-component Vector of the Half type. Occupies 6 Byte total. More...
Inherits ISerializable, and IEquatable< Vector3h >.
Public Member Functions | |
Vector3h (Half value) | |
Constructs a new instance. More... | |
Vector3h (Single value) | |
Constructs a new instance. More... | |
Vector3h (Half x, Half y, Half z) | |
The new Half3 instance will avoid conversion and copy directly from the Half parameters. More... | |
Vector3h (Single x, Single y, Single z) | |
The new Half3 instance will convert the 3 parameters into 16-bit half-precision floating-point. More... | |
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. More... | |
Vector3h (Vector3 v) | |
The new Half3 instance will convert the Vector3 into 16-bit half-precision floating-point. More... | |
Vector3h (Vector3 v, bool throwOnError) | |
The new Half3 instance will convert the Vector3 into 16-bit half-precision floating-point. More... | |
Vector3h (ref Vector3 v) | |
The new Half3 instance will convert the Vector3 into 16-bit half-precision floating-point. This is the fastest constructor. More... | |
Vector3h (ref Vector3 v, bool throwOnError) | |
The new Half3 instance will convert the Vector3 into 16-bit half-precision floating-point. More... | |
Vector3h (Vector3d v) | |
The new Half3 instance will convert the Vector3d into 16-bit half-precision floating-point. More... | |
Vector3h (Vector3d v, bool throwOnError) | |
The new Half3 instance will convert the Vector3d into 16-bit half-precision floating-point. More... | |
Vector3h (ref Vector3d v) | |
The new Half3 instance will convert the Vector3d into 16-bit half-precision floating-point. This is the faster constructor. More... | |
Vector3h (ref Vector3d v, bool throwOnError) | |
The new Half3 instance will convert the Vector3d into 16-bit half-precision floating-point. More... | |
Vector3 | ToVector3 () |
Returns this Half3 instance's contents as Vector3. More... | |
Vector3d | ToVector3d () |
Returns this Half3 instance's contents as Vector3d. More... | |
Vector3h (SerializationInfo info, StreamingContext context) | |
Constructor used by ISerializable to deserialize the object. More... | |
void | GetObjectData (SerializationInfo info, StreamingContext context) |
Used by ISerialize to serialize the object. More... | |
void | FromBinaryStream (BinaryReader bin) |
Updates the X,Y and Z components of this instance by reading from a Stream. More... | |
void | ToBinaryStream (BinaryWriter bin) |
Writes the X,Y and Z components of this instance into a Stream. More... | |
bool | Equals (Vector3h other) |
Returns a value indicating whether this instance is equal to a specified OpenTK.Half3 vector. More... | |
override string | ToString () |
Returns a string that contains this Half3's numbers in human-legible form. More... | |
Static Public Member Functions | |
static | operator Vector3h (Vector3 v3f) |
Converts OpenTK.Vector3 to OpenTK.Half3. More... | |
static | operator Vector3h (Vector3d v3d) |
Converts OpenTK.Vector3d to OpenTK.Half3. More... | |
static | operator Vector3 (Vector3h h3) |
Converts OpenTK.Half3 to OpenTK.Vector3. More... | |
static | operator Vector3d (Vector3h h3) |
Converts OpenTK.Half3 to OpenTK.Vector3d. More... | |
static byte[] | GetBytes (Vector3h h) |
Returns the Half3 as an array of bytes. More... | |
static Vector3h | FromBytes (byte[] value, int startIndex) |
Converts an array of bytes into Half3. More... | |
Public Attributes | |
Half | X |
The X component of the Half3. More... | |
Half | Y |
The Y component of the Half3. More... | |
Half | Z |
The Z component of the Half3. More... | |
Static Public Attributes | |
static readonly int | SizeInBytes = 6 |
The size in bytes for an instance of the Half3 struct is 6. More... | |
Properties | |
Vector2h | Xy [get, set] |
Gets or sets an OpenTK.Vector2h with the X and Y components of this instance. More... | |
Vector2h | Xz [get, set] |
Gets or sets an OpenTK.Vector2h with the X and Z components of this instance. More... | |
Vector2h | Yx [get, set] |
Gets or sets an OpenTK.Vector2h with the Y and X components of this instance. More... | |
Vector2h | Yz [get, set] |
Gets or sets an OpenTK.Vector2h with the Y and Z components of this instance. More... | |
Vector2h | Zx [get, set] |
Gets or sets an OpenTK.Vector2h with the Z and X components of this instance. More... | |
Vector2h | Zy [get, set] |
Gets or sets an OpenTK.Vector2h with the Z and Y components of this instance. More... | |
Vector3h | Xzy [get, set] |
Gets or sets an OpenTK.Vector3h with the X, Z, and Y components of this instance. More... | |
Vector3h | Yxz [get, set] |
Gets or sets an OpenTK.Vector3h with the Y, X, and Z components of this instance. More... | |
Vector3h | Yzx [get, set] |
Gets or sets an OpenTK.Vector3h with the Y, Z, and X components of this instance. More... | |
Vector3h | Zxy [get, set] |
Gets or sets an OpenTK.Vector3h with the Z, X, and Y components of this instance. More... | |
Vector3h | Zyx [get, set] |
Gets or sets an OpenTK.Vector3h with the Z, Y, and X components of this instance. More... | |
3-component Vector of the Half type. Occupies 6 Byte total.
OpenTK.Vector3h.Vector3h | ( | Half | value | ) |
Constructs a new instance.
value | The value that will initialize this instance. |
OpenTK.Vector3h.Vector3h | ( | Single | value | ) |
Constructs a new instance.
value | The value that will initialize this instance. |
The new Half3 instance will avoid conversion and copy directly from the Half parameters.
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. |
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. |
OpenTK.Vector3h.Vector3h | ( | Vector3 | v | ) |
The new Half3 instance will convert the Vector3 into 16-bit half-precision floating-point.
v | OpenTK.Vector3 |
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. |
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 |
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. |
OpenTK.Vector3h.Vector3h | ( | Vector3d | v | ) |
The new Half3 instance will convert the Vector3d into 16-bit half-precision floating-point.
v | OpenTK.Vector3d |
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. |
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 |
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. |
OpenTK.Vector3h.Vector3h | ( | SerializationInfo | info, |
StreamingContext | context | ||
) |
Constructor used by ISerializable to deserialize the object.
info | |
context |
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.. |
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. |
|
static |
Converts an array of bytes into Half3.
value | A Half3 in it's byte[] representation. |
startIndex | The starting position within value. |
|
static |
Returns the Half3 as an array of bytes.
h | The Half3 to convert. |
void OpenTK.Vector3h.GetObjectData | ( | SerializationInfo | info, |
StreamingContext | context | ||
) |
Used by ISerialize to serialize the object.
info | |
context |
Converts OpenTK.Half3 to OpenTK.Vector3.
h3 | The Half3 to convert. |
Converts OpenTK.Half3 to OpenTK.Vector3d.
h3 | The Half3 to convert. |
Converts OpenTK.Vector3 to OpenTK.Half3.
v3f | The Vector3 to convert. |
Converts OpenTK.Vector3d to OpenTK.Half3.
v3d | The Vector3d to convert. |
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. |
override string OpenTK.Vector3h.ToString | ( | ) |
Returns a string that contains this Half3's numbers in human-legible form.
Vector3 OpenTK.Vector3h.ToVector3 | ( | ) |
Returns this Half3 instance's contents as Vector3.
|
static |
The size in bytes for an instance of the Half3 struct is 6.
Half OpenTK.Vector3h.X |
The X component of the Half3.
Half OpenTK.Vector3h.Y |
The Y component of the Half3.
Half OpenTK.Vector3h.Z |
The Z component of the Half3.
|
getset |
Gets or sets an OpenTK.Vector2h with the X and Y components of this instance.
|
getset |
Gets or sets an OpenTK.Vector2h with the X and Z components of this instance.
|
getset |
Gets or sets an OpenTK.Vector3h with the X, Z, and Y components of this instance.
|
getset |
Gets or sets an OpenTK.Vector2h with the Y and X components of this instance.
|
getset |
Gets or sets an OpenTK.Vector3h with the Y, X, and Z components of this instance.
|
getset |
Gets or sets an OpenTK.Vector2h with the Y and Z components of this instance.
|
getset |
Gets or sets an OpenTK.Vector3h with the Y, Z, and X components of this instance.
|
getset |
Gets or sets an OpenTK.Vector2h with the Z and X components of this instance.
|
getset |
Gets or sets an OpenTK.Vector3h with the Z, X, and Y components of this instance.
|
getset |
Gets or sets an OpenTK.Vector2h with the Z and Y components of this instance.
|
getset |
Gets or sets an OpenTK.Vector3h with the Z, Y, and X components of this instance.