Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


half

Constructs a half value from a half value.
Read time 1 minuteLast updated 4 days ago

Definition

  • Type: Constructor
  • Namespace: Unity.Mathematics
  • Assembly: UnityEngine.MathematicsModule

half(half)

Constructs a half value from a half value.
public half(half x)

Parameters

The input half value to copy.

half(float)

Constructs a half value from a float value.
public half(float v)

Parameters

The single precision float value to convert to half.

half(double)

Constructs a half value from a double value.
public half(double v)

Parameters

The double precision float value to convert to half.