Half Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
- info
- SerializationInfo
- context
- StreamingContext
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.