Vector3h 结构

定义

Half 类型的 3 分量向量。 总共占用 6 个字节。

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

构造函数

Vector3h(Half)

Half 类型的 3 分量向量。 总共占用 6 个字节。

Vector3h(Half, Half, Half)

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

Vector3h(SerializationInfo, StreamingContext)

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

Vector3h(Single)

Half 类型的 3 分量向量。 总共占用 6 个字节。

Vector3h(Single, Single, Single)

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

Vector3h(Single, Single, Single, Boolean)

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

Vector3h(Vector3)

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

Vector3h(Vector3)

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

Vector3h(Vector3, Boolean)

Half 类型的 3 分量向量。 总共占用 6 个字节。

Vector3h(Vector3, Boolean)

Half 类型的 3 分量向量。 总共占用 6 个字节。

Vector3h(Vector3d)

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

Vector3h(Vector3d)

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

Vector3h(Vector3d, Boolean)

Half 类型的 3 分量向量。 总共占用 6 个字节。

Vector3h(Vector3d, Boolean)

Half 类型的 3 分量向量。 总共占用 6 个字节。

字段

SizeInBytes

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

X

Half3 的 X 分量。

Y

Half3 的 Y 分量。

Z

Half3 的 Z 分量。

属性

Xy

获取或设置具有此实例的 X 和 Y 组件的 OpenTK.Vector2h。

方法

Equals(Vector3h)

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

FromBinaryStream(BinaryReader)

通过从 Stream 中读取数据,汇报此实例的 X、Y 和 Z 组件。

FromBytes(Byte[], Int32)

Half 类型的 3 分量向量。 总共占用 6 个字节。

GetBytes(Vector3h)

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

GetObjectData(SerializationInfo, StreamingContext)

由 ISerialize 用于序列化对象。

ToBinaryStream(BinaryWriter)

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

ToString()

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

ToVector3()

Half 类型的 3 分量向量。 总共占用 6 个字节。

ToVector3d()

Half 类型的 3 分量向量。 总共占用 6 个字节。

运算符

Explicit(Vector3 to Vector3h)

Half 类型的 3 分量向量。 总共占用 6 个字节。

Explicit(Vector3d to Vector3h)

Half 类型的 3 分量向量。 总共占用 6 个字节。

Explicit(Vector3h to Vector3)

Half 类型的 3 分量向量。 总共占用 6 个字节。

Explicit(Vector3h to Vector3d)

Half 类型的 3 分量向量。 总共占用 6 个字节。

适用于