Vector3h 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
Vector3hVector3h
Attributes
Implements

Constructors

Vector3h(Half) Vector3h(Half)
Vector3h(Vector3) Vector3h(Vector3)

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

Vector3h(Vector3) Vector3h(Vector3)

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

Vector3h(Vector3d) Vector3h(Vector3d)

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

Vector3h(Vector3d) Vector3h(Vector3d)

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

Vector3h(Single) Vector3h(Single)
Vector3h(Vector3, Boolean) Vector3h(Vector3, Boolean)
Vector3h(Vector3, Boolean) Vector3h(Vector3, Boolean)
Vector3h(Vector3d, Boolean) Vector3h(Vector3d, Boolean)
Vector3h(Vector3d, Boolean) Vector3h(Vector3d, Boolean)
Vector3h(SerializationInfo, StreamingContext) Vector3h(SerializationInfo, StreamingContext)

Constructor used by ISerializable to deserialize the object.

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

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

Vector3h(Single, Single, 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) Vector3h(Single, Single, Single, Boolean)

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

Fields

SizeInBytes SizeInBytes

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

X X

The X component of the Half3.

Y Y

The Y component of the Half3.

Z Z

The Z component of the Half3.

Properties

Xy Xy

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

Methods

Equals(Vector3h) Equals(Vector3h)

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

FromBinaryStream(BinaryReader) FromBinaryStream(BinaryReader)

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

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

Returns the Half3 as an array of bytes.

GetObjectData(SerializationInfo, StreamingContext) GetObjectData(SerializationInfo, StreamingContext)

Used by ISerialize to serialize the object.

ToBinaryStream(BinaryWriter) ToBinaryStream(BinaryWriter)

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

ToString() ToString()

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

ToVector3() ToVector3()
ToVector3d() ToVector3d()

Operators

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

Applies to