Mac Guides | Samples

MonoMac.OpenGL.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: MonoMac.OpenGL
Assembly: XamMac (in XamMac.dll)
Assembly Versions: 0.0.0.0

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

See Also: 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
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
Converts an array of bytes into Half2.
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
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.