Mac Guides | Samples

MonoMac.OpenGL.Vector4h Structure

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

See Also: Vector4h

Syntax

public struct Vector4h : IEquatable<Vector4h>, ISerializable

Requirements

Namespace: MonoMac.OpenGL
Assembly: XamMac (in XamMac.dll)
Assembly Versions: 0.0.0.0

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

See Also: ValueType

Public Constructors

Constructs a new instance.
The new Half4 instance will convert the Vector4 into 16-bit half-precision floating-point.
The new Half4 instance will convert the Vector4 into 16-bit half-precision floating-point. This is the fastest constructor.
The new Half4 instance will convert the Vector4d into 16-bit half-precision floating-point.
The new Half4 instance will convert the Vector4d into 16-bit half-precision floating-point. This is the faster constructor.
Constructs a new instance.
The new Half4 instance will convert the Vector4 into 16-bit half-precision floating-point.
The new Half4 instance will convert the Vector4 into 16-bit half-precision floating-point.
The new Half4 instance will convert the Vector4d into 16-bit half-precision floating-point.
The new Half4 instance will convert the Vector4d into 16-bit half-precision floating-point.
Constructor used by ISerializable to deserialize the object.
The new Half4 instance will avoid conversion and copy directly from the Half parameters.
The new Half4 instance will convert the 4 parameters into 16-bit half-precision floating-point.
The new Half4 instance will convert the 4 parameters into 16-bit half-precision floating-point.

Public Fields

static readonly
SizeInBytesInt32. The size in bytes for an instance of the Half4 struct is 8.
WHalf. The W component of the Half4.
XHalf. The X component of the Half4.
YHalf. The Y component of the Half4.
ZHalf. The Z component of the Half4.

Public Properties

XyVector2h. Gets or sets an OpenTK.Vector2h with the X and Y components of this instance.
XyzVector3h. Gets or sets an OpenTK.Vector3h with the X, Y and Z components of this instance.

Public Methods

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

Public Operators

static
Conversion to MonoMac.OpenGL.Vector4h(Explicit)Converts OpenTK.Vector4 to OpenTK.Half4.
static
Conversion to MonoMac.OpenGL.Vector4h(Explicit)Converts OpenTK.Vector4d to OpenTK.Half4.
static
Conversion to MonoMac.OpenGL.Vector4(Explicit)Converts OpenTK.Half4 to OpenTK.Vector4.
static
Conversion to MonoMac.OpenGL.Vector4d(Explicit)Converts OpenTK.Half4 to OpenTK.Vector4d.