Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


half3

Returns a half3 vector constructed from three half values.
Read time 2 minutesLast updated 4 days ago

Definition

half3(half, half, half)

Returns a half3 vector constructed from three half values.
public static half3 half3(half x, half y, half z)

Parameters

The constructed vector's x component will be set to this value.

The constructed vector's y component will be set to this value.

The constructed vector's z component will be set to this value.

Returns

Type

Description

half3half3 constructed from arguments.

half3(half, half2)

Returns a half3 vector constructed from a half value and a half2 vector.
public static half3 half3(half x, half2 yz)

Parameters

The constructed vector's x component will be set to this value.

The constructed vector's yz components will be set to this value.

Returns

Type

Description

half3half3 constructed from arguments.

half3(half2, half)

Returns a half3 vector constructed from a half2 vector and a half value.
public static half3 half3(half2 xy, half z)

Parameters

The constructed vector's xy components will be set to this value.

The constructed vector's z component will be set to this value.

Returns

Type

Description

half3half3 constructed from arguments.

half3(half3)

Returns a half3 vector constructed from a half3 vector.
public static half3 half3(half3 xyz)

Parameters

The constructed vector's xyz components will be set to this value.

Returns

Type

Description

half3half3 constructed from arguments.

half3(half)

Returns a half3 vector constructed from a single half value by assigning it to every component.
public static half3 half3(half v)

Parameters

half to convert to half3

Returns

Type

Description

half3Converted value.

half3(float)

Returns a half3 vector constructed from a single float value by converting it to half and assigning it to every component.
public static half3 half3(float v)

Parameters

float to convert to half3

Returns

Type

Description

half3Converted value.

half3(float3)

Return a half3 vector constructed from a float3 vector by componentwise conversion.
public static half3 half3(float3 v)

Parameters

float3 to convert to half3

Returns

Type

Description

half3Converted value.

half3(double)

Returns a half3 vector constructed from a single double value by converting it to half and assigning it to every component.
public static half3 half3(double v)

Parameters

double to convert to half3

Returns

Type

Description

half3Converted value.

half3(double3)

Return a half3 vector constructed from a double3 vector by componentwise conversion.
public static half3 half3(double3 v)

Parameters

double3 to convert to half3

Returns

Type

Description

half3Converted value.