Düzenle

Aracılığıyla paylaş


Vector3h Struct

Definition

3-component Vector of the Half type. Occupies 6 Byte total.

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

Constructors

Vector3h(Half)
Vector3h(Half, Half, Half)

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

Vector3h(SerializationInfo, StreamingContext)

Constructor used by ISerializable to deserialize the object.

Vector3h(Single)
Vector3h(Single, Single, Single)

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

Vector3h(Single, Single, Single, Boolean)

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

Vector3h(Vector3)

The new Half3 instance will convert the Vector3 into 16-Bit Half precision floating point.

Vector3h(Vector3)

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

Vector3h(Vector3, Boolean)
Vector3h(Vector3, Boolean)
Vector3h(Vector3d)

The new Half3 instance will convert the Vector3d into 16-Bit Half precision floating point.

Vector3h(Vector3d)

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

Vector3h(Vector3d, Boolean)
Vector3h(Vector3d, Boolean)

Fields

SizeInBytes

The size in bytes for an instance of the Half3 struct is 6.

X

The X component of the Half3.

Y

The Y component of the Half3.

Z

The Z component of the Half3.

Properties

Xy

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

Methods

Equals(Vector3h)

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

FromBinaryStream(BinaryReader)

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

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

Returns the Half3 as an array of bytes.

GetObjectData(SerializationInfo, StreamingContext)

Used by ISerialize to serialize the object.

ToBinaryStream(BinaryWriter)

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

ToString()

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

ToVector3()
ToVector3d()

Operators

Explicit(Vector3 to Vector3h)
Explicit(Vector3d to Vector3h)
Explicit(Vector3h to Vector3)
Explicit(Vector3h to Vector3d)

Applies to