half
struct in Unity.Mathematics · Unity.Mathematics
13 of 13 of Unity's members
In Tassix
A 16-bit float, stored as its bits; converts to and from float with math.f32tof16/f16tof32.
Constructors 1
half(half x)half(float v)half(double v)Fields 2
ushort valuestatic readonly half zeroProperties 4
static float MaxValue { get; }static half MaxValueAsHalf { get; }static float MinValue { get; }static half MinValueAsHalf { get; }Methods 3
readonly bool Equals(half rhs)readonly bool Equals(object? o)readonly int GetHashCode()readonly string ToString()readonly string ToString(string? format, IFormatProvider? formatProvider)Operators 4
static explicit operator half(float v)static explicit operator half(double v)static implicit operator float(half d)static implicit operator double(half d)static bool operator !=(half lhs, half rhs)static bool operator ==(half lhs, half rhs)