Edit

Share via


Half Constructors

Definition

Overloads

Half(Double)

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

Half(Single)

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

Half(Double, Boolean)

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

Half(SerializationInfo, StreamingContext)

Constructor used by ISerializable to deserialize the object.

Half(Single, Boolean)

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

Half(Double)

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

public Half (double d);
new OpenTK.Half : double -> OpenTK.Half

Parameters

d
Double

64-Bit Double precision floating point number.

Applies to

Half(Single)

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

public Half (float f);
new OpenTK.Half : single -> OpenTK.Half

Parameters

f
Single

32-Bit Single precision floating point number.

Applies to

Half(Double, Boolean)

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

public Half (double d, bool throwOnError);
new OpenTK.Half : double * bool -> OpenTK.Half

Parameters

d
Double

64-Bit Double precision floating point number.

throwOnError
Boolean

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

Applies to

Half(SerializationInfo, StreamingContext)

Constructor used by ISerializable to deserialize the object.

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

Parameters

Applies to

Half(Single, Boolean)

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

public Half (float f, bool throwOnError);
new OpenTK.Half : single * bool -> OpenTK.Half

Parameters

f
Single

32-Bit Single precision floating point number.

throwOnError
Boolean

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

Applies to