Vector4h Struct

Definition

4-component Vector of the Half type. Occupies 8 Byte total.

[System.Serializable]
public struct Vector4h : IEquatable<OpenTK.Vector4h>, System.Runtime.Serialization.ISerializable
type Vector4h = struct
    interface ISerializable
Inheritance
Vector4h
Attributes
Implements

Constructors

Vector4h(Half)
Vector4h(Half, Half, Half, Half)

The new Half4 instance will avoid conversion and copy directly from the Half parameters.

Vector4h(SerializationInfo, StreamingContext)

Constructor used by ISerializable to deserialize the object.

Vector4h(Single)
Vector4h(Single, Single, Single, Single)

The new Half4 instance will convert the 4 parameters into 16-Bit Half precision floating point.

Vector4h(Single, Single, Single, Single, Boolean)

The new Half4 instance will convert the 4 parameters into 16-Bit Half precision floating point.

Vector4h(Vector4)

The new Half4 instance will convert the Vector4 into 16-Bit Half precision floating point.

Vector4h(Vector4)

The new Half4 instance will convert the Vector4 into 16-Bit Half precision floating point. This is the fastest constructor.

Vector4h(Vector4, Boolean)
Vector4h(Vector4, Boolean)
Vector4h(Vector4d)

The new Half4 instance will convert the Vector4d into 16-Bit Half precision floating point.

Vector4h(Vector4d)

The new Half4 instance will convert the Vector4d into 16-Bit Half precision floating point. This is the faster constructor.

Vector4h(Vector4d, Boolean)
Vector4h(Vector4d, Boolean)

Fields

SizeInBytes

The size in bytes for an instance of the Half4 struct is 8.

W

The W component of the Half4.

X

The X component of the Half4.

Y

The Y component of the Half4.

Z

The Z component of the Half4.

Properties

Xy

Gets or sets an OpenTK.Vector2h with the X and Y components of this instance.

Xyz

Gets or sets an OpenTK.Vector3h with the X, Y and Z components of this instance.

Methods

Equals(Vector4h)

Returns a value indicating whether this instance is equal to a specified OpenTK.Half4 vector.

FromBinaryStream(BinaryReader)

Updates the X,Y,Z and W components of this instance by reading from a Stream.

FromBytes(Byte[], Int32)
GetBytes(Vector4h)

Returns the Half4 as an array of bytes.

GetObjectData(SerializationInfo, StreamingContext)

Used by ISerialize to serialize the object.

ToBinaryStream(BinaryWriter)

Writes the X,Y,Z and W components of this instance into a Stream.

ToString()

Returns a string that contains this Half4's numbers in human-legible form.

ToVector4()
ToVector4d()

Operators

Explicit(Vector4 to Vector4h)
Explicit(Vector4d to Vector4h)
Explicit(Vector4h to Vector4)
Explicit(Vector4h to Vector4d)

Applies to