Vector2h Constructors

Definition

Overloads

Vector2h(Half)
Vector2h(Vector2)

The new Half2 instance will convert the Vector2 into 16-Bit Half precision floating point.

Vector2h(Vector2)

The new Half2 instance will convert the Vector2 into 16-Bit Half precision floating point. This is the fastest constructor.

Vector2h(Vector2d)

The new Half2 instance will convert the Vector2d into 16-Bit Half precision floating point.

Vector2h(Vector2d)

The new Half2 instance will convert the Vector2d into 16-Bit Half precision floating point. This is the faster constructor.

Vector2h(Single)
Vector2h(Half, Half)

The new Half2 instance will avoid conversion and copy directly from the Half parameters.

Vector2h(Vector2, Boolean)
Vector2h(Vector2, Boolean)
Vector2h(Vector2d, Boolean)
Vector2h(Vector2d, Boolean)
Vector2h(SerializationInfo, StreamingContext)

Constructor used by ISerializable to deserialize the object.

Vector2h(Single, Single)

The new Half2 instance will convert the 2 parameters into 16-Bit Half precision floating point.

Vector2h(Single, Single, Boolean)

The new Half2 instance will convert the 2 parameters into 16-Bit Half precision floating point.

Vector2h(Half)

public Vector2h (OpenTK.Half value);
new OpenTK.Vector2h : OpenTK.Half -> OpenTK.Vector2h

Parameters

value
Half

Applies to

Vector2h(Vector2)

Important

This API is not CLS-compliant.

The new Half2 instance will convert the Vector2 into 16-Bit Half precision floating point.

[System.CLSCompliant(false)]
public Vector2h (OpenTK.Vector2 v);
new OpenTK.Vector2h : OpenTK.Vector2 -> OpenTK.Vector2h

Parameters

v
Vector2

OpenTK.Vector2

Attributes

Applies to

Vector2h(Vector2)

The new Half2 instance will convert the Vector2 into 16-Bit Half precision floating point. This is the fastest constructor.

public Vector2h (ref OpenTK.Vector2 v);
new OpenTK.Vector2h :  -> OpenTK.Vector2h

Parameters

v
Vector2

OpenTK.Vector2

Applies to

Vector2h(Vector2d)

The new Half2 instance will convert the Vector2d into 16-Bit Half precision floating point.

public Vector2h (OpenTK.Vector2d v);
new OpenTK.Vector2h : OpenTK.Vector2d -> OpenTK.Vector2h

Parameters

v
Vector2d

OpenTK.Vector2d

Applies to

Vector2h(Vector2d)

Important

This API is not CLS-compliant.

The new Half2 instance will convert the Vector2d into 16-Bit Half precision floating point. This is the faster constructor.

[System.CLSCompliant(false)]
public Vector2h (ref OpenTK.Vector2d v);
new OpenTK.Vector2h :  -> OpenTK.Vector2h

Parameters

v
Vector2d

OpenTK.Vector2d

Attributes

Applies to

Vector2h(Single)

public Vector2h (float value);
new OpenTK.Vector2h : single -> OpenTK.Vector2h

Parameters

value
Single

Applies to

Vector2h(Half, Half)

The new Half2 instance will avoid conversion and copy directly from the Half parameters.

public Vector2h (OpenTK.Half x, OpenTK.Half y);
new OpenTK.Vector2h : OpenTK.Half * OpenTK.Half -> OpenTK.Vector2h

Parameters

x
Half

An Half instance of a 16-Bit half precision floating point number.

y
Half

An Half instance of a 16-Bit half precision floating point number.

Applies to

Vector2h(Vector2, Boolean)

Important

This API is not CLS-compliant.

[System.CLSCompliant(false)]
public Vector2h (OpenTK.Vector2 v, bool throwOnError);
new OpenTK.Vector2h : OpenTK.Vector2 * bool -> OpenTK.Vector2h

Parameters

throwOnError
Boolean
Attributes

Applies to

Vector2h(Vector2, Boolean)

public Vector2h (ref OpenTK.Vector2 v, bool throwOnError);
new OpenTK.Vector2h :  * bool -> OpenTK.Vector2h

Parameters

throwOnError
Boolean

Applies to

Vector2h(Vector2d, Boolean)

public Vector2h (OpenTK.Vector2d v, bool throwOnError);
new OpenTK.Vector2h : OpenTK.Vector2d * bool -> OpenTK.Vector2h

Parameters

throwOnError
Boolean

Applies to

Vector2h(Vector2d, Boolean)

Important

This API is not CLS-compliant.

[System.CLSCompliant(false)]
public Vector2h (ref OpenTK.Vector2d v, bool throwOnError);
new OpenTK.Vector2h :  * bool -> OpenTK.Vector2h

Parameters

throwOnError
Boolean
Attributes

Applies to

Vector2h(SerializationInfo, StreamingContext)

Constructor used by ISerializable to deserialize the object.

public Vector2h (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
new OpenTK.Vector2h : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> OpenTK.Vector2h

Parameters

Applies to

Vector2h(Single, Single)

The new Half2 instance will convert the 2 parameters into 16-Bit Half precision floating point.

public Vector2h (float x, float y);
new OpenTK.Vector2h : single * single -> OpenTK.Vector2h

Parameters

x
Single

32-Bit Single precision floating point number.

y
Single

32-Bit Single precision floating point number.

Applies to

Vector2h(Single, Single, Boolean)

The new Half2 instance will convert the 2 parameters into 16-Bit Half precision floating point.

public Vector2h (float x, float y, bool throwOnError);
new OpenTK.Vector2h : single * single * bool -> OpenTK.Vector2h

Parameters

x
Single

32-Bit Single precision floating point number.

y
Single

32-Bit Single precision floating point number.

throwOnError
Boolean

Enable checks that will throw if the conversion result is not meaningful.

Applies to