Edytuj

Udostępnij za pośrednictwem


Vector4h Constructors

Definition

Overloads

Vector4h(Half)
Vector4h(Vector4)

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

Vector4h(Vector4)

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

Vector4h(Vector4d)

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

Vector4h(Vector4d)

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

Vector4h(Single)
Vector4h(Vector4, Boolean)
Vector4h(Vector4, Boolean)
Vector4h(Vector4d, Boolean)
Vector4h(Vector4d, Boolean)
Vector4h(SerializationInfo, StreamingContext)

Constructor used by ISerializable to deserialize the object.

Vector4h(Half, Half, Half, Half)

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

Vector4h(Single, Single, Single, Single)

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

Vector4h(Single, Single, Single, Single, Boolean)

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

Vector4h(Half)

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

Parameters

value
Half

Applies to

Vector4h(Vector4)

Important

This API is not CLS-compliant.

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

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

Parameters

v
Vector4

OpenTK.Vector4

Attributes

Applies to

Vector4h(Vector4)

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

public Vector4h (ref OpenTK.Vector4 v);
new OpenTK.Vector4h :  -> OpenTK.Vector4h

Parameters

v
Vector4

OpenTK.Vector4

Applies to

Vector4h(Vector4d)

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

public Vector4h (OpenTK.Vector4d v);
new OpenTK.Vector4h : OpenTK.Vector4d -> OpenTK.Vector4h

Parameters

v
Vector4d

OpenTK.Vector4d

Applies to

Vector4h(Vector4d)

Important

This API is not CLS-compliant.

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

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

Parameters

v
Vector4d

OpenTK.Vector4d

Attributes

Applies to

Vector4h(Single)

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

Parameters

value
Single

Applies to

Vector4h(Vector4, Boolean)

Important

This API is not CLS-compliant.

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

Parameters

throwOnError
Boolean
Attributes

Applies to

Vector4h(Vector4, Boolean)

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

Parameters

throwOnError
Boolean

Applies to

Vector4h(Vector4d, Boolean)

public Vector4h (OpenTK.Vector4d v, bool throwOnError);
new OpenTK.Vector4h : OpenTK.Vector4d * bool -> OpenTK.Vector4h

Parameters

throwOnError
Boolean

Applies to

Vector4h(Vector4d, Boolean)

Important

This API is not CLS-compliant.

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

Parameters

throwOnError
Boolean
Attributes

Applies to

Vector4h(SerializationInfo, StreamingContext)

Constructor used by ISerializable to deserialize the object.

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

Parameters

Applies to

Vector4h(Half, Half, Half, Half)

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

public Vector4h (OpenTK.Half x, OpenTK.Half y, OpenTK.Half z, OpenTK.Half w);
new OpenTK.Vector4h : OpenTK.Half * OpenTK.Half * OpenTK.Half * OpenTK.Half -> OpenTK.Vector4h

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.

z
Half

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

w
Half

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

Applies to

Vector4h(Single, Single, Single, Single)

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

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

Parameters

x
Single

32-Bit Single precision floating point number.

y
Single

32-Bit Single precision floating point number.

z
Single

32-Bit Single precision floating point number.

w
Single

32-Bit Single precision floating point number.

Applies to

Vector4h(Single, Single, Single, Single, Boolean)

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

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

Parameters

x
Single

32-Bit Single precision floating point number.

y
Single

32-Bit Single precision floating point number.

z
Single

32-Bit Single precision floating point number.

w
Single

32-Bit Single precision floating point number.

throwOnError
Boolean

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

Applies to