iOS Guides | Samples

OpenTK.Vector2h Structure

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

See Also: Vector2h

Syntax

public struct Vector2h : IEquatable<Vector2h>, ISerializable

Requirements

Namespace: OpenTK
Assembly: Xamarin.iOS (in Xamarin.iOS.dll)
Assembly Versions: 0.0.0.0

The members of OpenTK.Vector2h are listed below.

See Also: ValueType

Public Constructors

The new Half2 instance will convert the Vector2 into 16-Bit Half precision floating point.
The new Half2 instance will convert the Vector2 into 16-Bit Half precision floating point. This is the fastest constructor.
The new Half2 instance will convert the Vector2d into 16-Bit Half precision floating point.
The new Half2 instance will convert the Vector2d into 16-Bit Half precision floating point. This is the faster constructor.
The new Half2 instance will avoid conversion and copy directly from the Half parameters.
Constructor used by ISerializable to deserialize the object.
The new Half2 instance will convert the 2 parameters into 16-Bit Half precision floating point.
The new Half2 instance will convert the 2 parameters into 16-Bit Half precision floating point.

Public Fields

static readonly
SizeInBytesInt32. The size in bytes for an instance of the Half2 struct is 4.
XHalf. The X component of the Half2.
YHalf. The Y component of the Half2.

Public Methods

Equals(Vector2h) : Boolean
Returns a value indicating whether this instance is equal to a specified OpenTK.Half2 vector.
FromBinaryStream(BinaryReader)
Updates the X and Y components of this instance by reading from a Stream.
static
FromBytes(Byte[], Int32) : Vector2h
static
GetBytes(Vector2h) : Byte[]
Returns the Half2 as an array of bytes.
GetObjectData(SerializationInfo, StreamingContext)
Used by ISerialize to serialize the object.
ToBinaryStream(BinaryWriter)
Writes the X and Y components of this instance into a Stream.
override
ToString() : String
Returns a string that contains this Half2's numbers in human-legible form.
ToVector2() : Vector2
ToVector2d() : Vector2d

Public Operators