Mac Guides | Samples

MonoMac.OpenGL.Vector3h Structure

3-component Vector of the Half type. Occupies 6 Byte total.

See Also: Vector3h

Syntax

public struct Vector3h : IEquatable<Vector3h>, ISerializable

Requirements

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

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

See Also: ValueType

Public Constructors

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

Public Fields

static readonly
SizeInBytesInt32. The size in bytes for an instance of the Half3 struct is 6.
XHalf. The X component of the Half3.
YHalf. The Y component of the Half3.
ZHalf. The Z component of the Half3.

Public Properties

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

Public Methods

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

Public Operators

static
Conversion to MonoMac.OpenGL.Vector3h(Explicit)Converts OpenTK.Vector3 to OpenTK.Half3.
static
Conversion to MonoMac.OpenGL.Vector3h(Explicit)Converts OpenTK.Vector3d to OpenTK.Half3.
static
Conversion to MonoMac.OpenGL.Vector3(Explicit)Converts OpenTK.Half3 to OpenTK.Vector3.
static
Conversion to MonoMac.OpenGL.Vector3d(Explicit)Converts OpenTK.Half3 to OpenTK.Vector3d.