MonoMac.OpenGL.Vector2h Members

The members of MonoMac.OpenGL.Vector2h are listed below.

See Also: Inherited members from System.ValueType

Public Constructors

Constructs a new instance.
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.
Constructs a new instance.
The new Half2 instance will avoid conversion and copy directly from the Half parameters.
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.
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.
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
SizeInBytesint. 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) : bool
Returns a value indicating whether this instance is equal to a specified OpenTK.Half2 vector.
FromBinaryStream(System.IO.BinaryReader)
Updates the X and Y components of this instance by reading from a Stream.
static
FromBytes(byte[], int) : Vector2h
Converts an array of bytes into Half2.
static
GetBytes(Vector2h) : byte[]
Returns the Half2 as an array of bytes.
GetObjectData(System.Runtime.Serialization.SerializationInfo, System.Runtime.Serialization.StreamingContext)
Used by ISerialize to serialize the object.
ToBinaryStream(System.IO.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
Returns this Half2 instance's contents as Vector2.
ToVector2d() : Vector2d
Returns this Half2 instance's contents as Vector2d.

Public Operators

static
Conversion to MonoMac.OpenGL.Vector2h(Explicit)Converts OpenTK.Vector2 to OpenTK.Half2.
static
Conversion to MonoMac.OpenGL.Vector2h(Explicit)Converts OpenTK.Vector2d to OpenTK.Half2.
static
Conversion to MonoMac.OpenGL.Vector2(Explicit)Converts OpenTK.Half2 to OpenTK.Vector2.
static
Conversion to MonoMac.OpenGL.Vector2d(Explicit)Converts OpenTK.Half2 to OpenTK.Vector2d.