Vector4h 结构

定义

Half 类型的 4 分量向量。 总共占用 8 字节。

[System.Serializable]
public struct Vector4h : IEquatable<OpenTK.Vector4h>, System.Runtime.Serialization.ISerializable
type Vector4h = struct
    interface ISerializable
继承
Vector4h
属性
实现

构造函数

Vector4h(Half)

Half 类型的 4 分量向量。 总共占用 8 字节。

Vector4h(Half, Half, Half, Half)

新的 Half4 实例将避免转换,并直接从 Half 参数复制。

Vector4h(SerializationInfo, StreamingContext)

ISerializable 用于反序列化对象的构造函数。

Vector4h(Single)

Half 类型的 4 分量向量。 总共占用 8 字节。

Vector4h(Single, Single, Single, Single)

新的 Half4 实例会将 4 个参数转换为 16 位半精度浮点。

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

新的 Half4 实例会将 4 个参数转换为 16 位半精度浮点。

Vector4h(Vector4)

新的 Half4 实例会将 Vector4 转换为 16 位半精度浮点。

Vector4h(Vector4)

新的 Half4 实例会将 Vector4 转换为 16 位半精度浮点。 这是最快的构造函数。

Vector4h(Vector4, Boolean)

Half 类型的 4 分量向量。 总共占用 8 字节。

Vector4h(Vector4, Boolean)

Half 类型的 4 分量向量。 总共占用 8 字节。

Vector4h(Vector4d)

新的 Half4 实例会将 Vector4d 转换为 16 位半精度浮点。

Vector4h(Vector4d)

新的 Half4 实例会将 Vector4d 转换为 16 位半精度浮点。 这是更快的构造函数。

Vector4h(Vector4d, Boolean)

Half 类型的 4 分量向量。 总共占用 8 字节。

Vector4h(Vector4d, Boolean)

Half 类型的 4 分量向量。 总共占用 8 字节。

字段

SizeInBytes

Half4 结构的实例的大小(以字节为单位)为 8。

W

Half4 的 W 组件。

X

Half4 的 X 分量。

Y

Half4 的 Y 组件。

Z

Half4 的 Z 组件。

属性

Xy

获取或设置一个 OpenTK.Vector2h,其中包含此实例的 X 和 Y 组件。

Xyz

获取或设置一个 OpenTK.Vector3h,其中包含此实例的 X、Y 和 Z 组件。

方法

Equals(Vector4h)

返回一个值,该值指示此实例是否等于指定的 OpenTK.Half4 向量。

FromBinaryStream(BinaryReader)

汇报此实例的 X、Y、Z 和 W 组件,方法是从 Stream 进行读取。

FromBytes(Byte[], Int32)

Half 类型的 4 分量向量。 总共占用 8 字节。

GetBytes(Vector4h)

以字节数组的形式返回 Half4。

GetObjectData(SerializationInfo, StreamingContext)

由 ISerialize 用于序列化对象。

ToBinaryStream(BinaryWriter)

将此实例的 X、Y、Z 和 W 组件写入 Stream。

ToString()

返回一个字符串,该字符串包含此 Half4 的数字,该数字以人可读的形式显示。

ToVector4()

Half 类型的 4 分量向量。 总共占用 8 字节。

ToVector4d()

Half 类型的 4 分量向量。 总共占用 8 字节。

运算符

Explicit(Vector4 to Vector4h)

Half 类型的 4 分量向量。 总共占用 8 字节。

Explicit(Vector4d to Vector4h)

Half 类型的 4 分量向量。 总共占用 8 字节。

Explicit(Vector4h to Vector4)

Half 类型的 4 分量向量。 总共占用 8 字节。

Explicit(Vector4h to Vector4d)

Half 类型的 4 分量向量。 总共占用 8 字节。

适用于