Struct half4 | Package Manager UI website
docs.unity3d.com
    Show / Hide Table of Contents

    Struct half4

    Namespace: Unity.Mathematics
    Syntax
    public struct half4 : IEquatable<half4>, IFormattable

    Constructors

    half4(Double)

    Constructs a half4 vector from a single double value by converting it to half and assigning it to every component.

    Declaration
    public half4(double v)
    Parameters
    Type Name Description
    System.Double v

    half4(Single)

    Constructs a half4 vector from a single float value by converting it to half and assigning it to every component.

    Declaration
    public half4(float v)
    Parameters
    Type Name Description
    System.Single v

    half4(double4)

    Constructs a half4 vector from a double4 vector by componentwise conversion.

    Declaration
    public half4(double4 v)
    Parameters
    Type Name Description
    double4 v

    half4(float4)

    Constructs a half4 vector from a float4 vector by componentwise conversion.

    Declaration
    public half4(float4 v)
    Parameters
    Type Name Description
    float4 v

    half4(half)

    Constructs a half4 vector from a single half value by assigning it to every component.

    Declaration
    public half4(half v)
    Parameters
    Type Name Description
    half v

    half4(half, half, half, half)

    Constructs a half4 vector from four half values.

    Declaration
    public half4(half x, half y, half z, half w)
    Parameters
    Type Name Description
    half x
    half y
    half z
    half w

    half4(half, half, half2)

    Constructs a half4 vector from two half values and a half2 vector.

    Declaration
    public half4(half x, half y, half2 zw)
    Parameters
    Type Name Description
    half x
    half y
    half2 zw

    half4(half, half2, half)

    Constructs a half4 vector from a half value, a half2 vector and a half value.

    Declaration
    public half4(half x, half2 yz, half w)
    Parameters
    Type Name Description
    half x
    half2 yz
    half w

    half4(half, half3)

    Constructs a half4 vector from a half value and a half3 vector.

    Declaration
    public half4(half x, half3 yzw)
    Parameters
    Type Name Description
    half x
    half3 yzw

    half4(half2, half, half)

    Constructs a half4 vector from a half2 vector and two half values.

    Declaration
    public half4(half2 xy, half z, half w)
    Parameters
    Type Name Description
    half2 xy
    half z
    half w

    half4(half2, half2)

    Constructs a half4 vector from two half2 vectors.

    Declaration
    public half4(half2 xy, half2 zw)
    Parameters
    Type Name Description
    half2 xy
    half2 zw

    half4(half3, half)

    Constructs a half4 vector from a half3 vector and a half value.

    Declaration
    public half4(half3 xyz, half w)
    Parameters
    Type Name Description
    half3 xyz
    half w

    half4(half4)

    Constructs a half4 vector from a half4 vector.

    Declaration
    public half4(half4 xyzw)
    Parameters
    Type Name Description
    half4 xyzw

    Fields

    w

    Declaration
    public half w
    Field Value
    Type Description
    half

    x

    Declaration
    public half x
    Field Value
    Type Description
    half

    y

    Declaration
    public half y
    Field Value
    Type Description
    half

    z

    Declaration
    public half z
    Field Value
    Type Description
    half

    zero

    half4 zero value.

    Declaration
    public static readonly half4 zero
    Field Value
    Type Description
    half4

    Properties

    Item[Int32]

    Returns the half element at a specified index.

    Declaration
    public half this[int index] { get; set; }
    Parameters
    Type Name Description
    System.Int32 index
    Property Value
    Type Description
    half

    ww

    Declaration
    public half2 ww { get; }
    Property Value
    Type Description
    half2

    www

    Declaration
    public half3 www { get; }
    Property Value
    Type Description
    half3

    wwww

    Declaration
    public half4 wwww { get; }
    Property Value
    Type Description
    half4

    wwwx

    Declaration
    public half4 wwwx { get; }
    Property Value
    Type Description
    half4

    wwwy

    Declaration
    public half4 wwwy { get; }
    Property Value
    Type Description
    half4

    wwwz

    Declaration
    public half4 wwwz { get; }
    Property Value
    Type Description
    half4

    wwx

    Declaration
    public half3 wwx { get; }
    Property Value
    Type Description
    half3

    wwxw

    Declaration
    public half4 wwxw { get; }
    Property Value
    Type Description
    half4

    wwxx

    Declaration
    public half4 wwxx { get; }
    Property Value
    Type Description
    half4

    wwxy

    Declaration
    public half4 wwxy { get; }
    Property Value
    Type Description
    half4

    wwxz

    Declaration
    public half4 wwxz { get; }
    Property Value
    Type Description
    half4

    wwy

    Declaration
    public half3 wwy { get; }
    Property Value
    Type Description
    half3

    wwyw

    Declaration
    public half4 wwyw { get; }
    Property Value
    Type Description
    half4

    wwyx

    Declaration
    public half4 wwyx { get; }
    Property Value
    Type Description
    half4

    wwyy

    Declaration
    public half4 wwyy { get; }
    Property Value
    Type Description
    half4

    wwyz

    Declaration
    public half4 wwyz { get; }
    Property Value
    Type Description
    half4

    wwz

    Declaration
    public half3 wwz { get; }
    Property Value
    Type Description
    half3

    wwzw

    Declaration
    public half4 wwzw { get; }
    Property Value
    Type Description
    half4

    wwzx

    Declaration
    public half4 wwzx { get; }
    Property Value
    Type Description
    half4

    wwzy

    Declaration
    public half4 wwzy { get; }
    Property Value
    Type Description
    half4

    wwzz

    Declaration
    public half4 wwzz { get; }
    Property Value
    Type Description
    half4

    wx

    Declaration
    public half2 wx { get; set; }
    Property Value
    Type Description
    half2

    wxw

    Declaration
    public half3 wxw { get; }
    Property Value
    Type Description
    half3

    wxww

    Declaration
    public half4 wxww { get; }
    Property Value
    Type Description
    half4

    wxwx

    Declaration
    public half4 wxwx { get; }
    Property Value
    Type Description
    half4

    wxwy

    Declaration
    public half4 wxwy { get; }
    Property Value
    Type Description
    half4

    wxwz

    Declaration
    public half4 wxwz { get; }
    Property Value
    Type Description
    half4

    wxx

    Declaration
    public half3 wxx { get; }
    Property Value
    Type Description
    half3

    wxxw

    Declaration
    public half4 wxxw { get; }
    Property Value
    Type Description
    half4

    wxxx

    Declaration
    public half4 wxxx { get; }
    Property Value
    Type Description
    half4

    wxxy

    Declaration
    public half4 wxxy { get; }
    Property Value
    Type Description
    half4

    wxxz

    Declaration
    public half4 wxxz { get; }
    Property Value
    Type Description
    half4

    wxy

    Declaration
    public half3 wxy { get; set; }
    Property Value
    Type Description
    half3

    wxyw

    Declaration
    public half4 wxyw { get; }
    Property Value
    Type Description
    half4

    wxyx

    Declaration
    public half4 wxyx { get; }
    Property Value
    Type Description
    half4

    wxyy

    Declaration
    public half4 wxyy { get; }
    Property Value
    Type Description
    half4

    wxyz

    Declaration
    public half4 wxyz { get; set; }
    Property Value
    Type Description
    half4

    wxz

    Declaration
    public half3 wxz { get; set; }
    Property Value
    Type Description
    half3

    wxzw

    Declaration
    public half4 wxzw { get; }
    Property Value
    Type Description
    half4

    wxzx

    Declaration
    public half4 wxzx { get; }
    Property Value
    Type Description
    half4

    wxzy

    Declaration
    public half4 wxzy { get; set; }
    Property Value
    Type Description
    half4

    wxzz

    Declaration
    public half4 wxzz { get; }
    Property Value
    Type Description
    half4

    wy

    Declaration
    public half2 wy { get; set; }
    Property Value
    Type Description
    half2

    wyw

    Declaration
    public half3 wyw { get; }
    Property Value
    Type Description
    half3

    wyww

    Declaration
    public half4 wyww { get; }
    Property Value
    Type Description
    half4

    wywx

    Declaration
    public half4 wywx { get; }
    Property Value
    Type Description
    half4

    wywy

    Declaration
    public half4 wywy { get; }
    Property Value
    Type Description
    half4

    wywz

    Declaration
    public half4 wywz { get; }
    Property Value
    Type Description
    half4

    wyx

    Declaration
    public half3 wyx { get; set; }
    Property Value
    Type Description
    half3

    wyxw

    Declaration
    public half4 wyxw { get; }
    Property Value
    Type Description
    half4

    wyxx

    Declaration
    public half4 wyxx { get; }
    Property Value
    Type Description
    half4

    wyxy

    Declaration
    public half4 wyxy { get; }
    Property Value
    Type Description
    half4

    wyxz

    Declaration
    public half4 wyxz { get; set; }
    Property Value
    Type Description
    half4

    wyy

    Declaration
    public half3 wyy { get; }
    Property Value
    Type Description
    half3

    wyyw

    Declaration
    public half4 wyyw { get; }
    Property Value
    Type Description
    half4

    wyyx

    Declaration
    public half4 wyyx { get; }
    Property Value
    Type Description
    half4

    wyyy

    Declaration
    public half4 wyyy { get; }
    Property Value
    Type Description
    half4

    wyyz

    Declaration
    public half4 wyyz { get; }
    Property Value
    Type Description
    half4

    wyz

    Declaration
    public half3 wyz { get; set; }
    Property Value
    Type Description
    half3

    wyzw

    Declaration
    public half4 wyzw { get; }
    Property Value
    Type Description
    half4

    wyzx

    Declaration
    public half4 wyzx { get; set; }
    Property Value
    Type Description
    half4

    wyzy

    Declaration
    public half4 wyzy { get; }
    Property Value
    Type Description
    half4

    wyzz

    Declaration
    public half4 wyzz { get; }
    Property Value
    Type Description
    half4

    wz

    Declaration
    public half2 wz { get; set; }
    Property Value
    Type Description
    half2

    wzw

    Declaration
    public half3 wzw { get; }
    Property Value
    Type Description
    half3

    wzww

    Declaration
    public half4 wzww { get; }
    Property Value
    Type Description
    half4

    wzwx

    Declaration
    public half4 wzwx { get; }
    Property Value
    Type Description
    half4

    wzwy

    Declaration
    public half4 wzwy { get; }
    Property Value
    Type Description
    half4

    wzwz

    Declaration
    public half4 wzwz { get; }
    Property Value
    Type Description
    half4

    wzx

    Declaration
    public half3 wzx { get; set; }
    Property Value
    Type Description
    half3

    wzxw

    Declaration
    public half4 wzxw { get; }
    Property Value
    Type Description
    half4

    wzxx

    Declaration
    public half4 wzxx { get; }
    Property Value
    Type Description
    half4

    wzxy

    Declaration
    public half4 wzxy { get; set; }
    Property Value
    Type Description
    half4

    wzxz

    Declaration
    public half4 wzxz { get; }
    Property Value
    Type Description
    half4

    wzy

    Declaration
    public half3 wzy { get; set; }
    Property Value
    Type Description
    half3

    wzyw

    Declaration
    public half4 wzyw { get; }
    Property Value
    Type Description
    half4

    wzyx

    Declaration
    public half4 wzyx { get; set; }
    Property Value
    Type Description
    half4

    wzyy

    Declaration
    public half4 wzyy { get; }
    Property Value
    Type Description
    half4

    wzyz

    Declaration
    public half4 wzyz { get; }
    Property Value
    Type Description
    half4

    wzz

    Declaration
    public half3 wzz { get; }
    Property Value
    Type Description
    half3

    wzzw

    Declaration
    public half4 wzzw { get; }
    Property Value
    Type Description
    half4

    wzzx

    Declaration
    public half4 wzzx { get; }
    Property Value
    Type Description
    half4

    wzzy

    Declaration
    public half4 wzzy { get; }
    Property Value
    Type Description
    half4

    wzzz

    Declaration
    public half4 wzzz { get; }
    Property Value
    Type Description
    half4

    xw

    Declaration
    public half2 xw { get; set; }
    Property Value
    Type Description
    half2

    xww

    Declaration
    public half3 xww { get; }
    Property Value
    Type Description
    half3

    xwww

    Declaration
    public half4 xwww { get; }
    Property Value
    Type Description
    half4

    xwwx

    Declaration
    public half4 xwwx { get; }
    Property Value
    Type Description
    half4

    xwwy

    Declaration
    public half4 xwwy { get; }
    Property Value
    Type Description
    half4

    xwwz

    Declaration
    public half4 xwwz { get; }
    Property Value
    Type Description
    half4

    xwx

    Declaration
    public half3 xwx { get; }
    Property Value
    Type Description
    half3

    xwxw

    Declaration
    public half4 xwxw { get; }
    Property Value
    Type Description
    half4

    xwxx

    Declaration
    public half4 xwxx { get; }
    Property Value
    Type Description
    half4

    xwxy

    Declaration
    public half4 xwxy { get; }
    Property Value
    Type Description
    half4

    xwxz

    Declaration
    public half4 xwxz { get; }
    Property Value
    Type Description
    half4

    xwy

    Declaration
    public half3 xwy { get; set; }
    Property Value
    Type Description
    half3

    xwyw

    Declaration
    public half4 xwyw { get; }
    Property Value
    Type Description
    half4

    xwyx

    Declaration
    public half4 xwyx { get; }
    Property Value
    Type Description
    half4

    xwyy

    Declaration
    public half4 xwyy { get; }
    Property Value
    Type Description
    half4

    xwyz

    Declaration
    public half4 xwyz { get; set; }
    Property Value
    Type Description
    half4

    xwz

    Declaration
    public half3 xwz { get; set; }
    Property Value
    Type Description
    half3

    xwzw

    Declaration
    public half4 xwzw { get; }
    Property Value
    Type Description
    half4

    xwzx

    Declaration
    public half4 xwzx { get; }
    Property Value
    Type Description
    half4

    xwzy

    Declaration
    public half4 xwzy { get; set; }
    Property Value
    Type Description
    half4

    xwzz

    Declaration
    public half4 xwzz { get; }
    Property Value
    Type Description
    half4

    xx

    Declaration
    public half2 xx { get; }
    Property Value
    Type Description
    half2

    xxw

    Declaration
    public half3 xxw { get; }
    Property Value
    Type Description
    half3

    xxww

    Declaration
    public half4 xxww { get; }
    Property Value
    Type Description
    half4

    xxwx

    Declaration
    public half4 xxwx { get; }
    Property Value
    Type Description
    half4

    xxwy

    Declaration
    public half4 xxwy { get; }
    Property Value
    Type Description
    half4

    xxwz

    Declaration
    public half4 xxwz { get; }
    Property Value
    Type Description
    half4

    xxx

    Declaration
    public half3 xxx { get; }
    Property Value
    Type Description
    half3

    xxxw

    Declaration
    public half4 xxxw { get; }
    Property Value
    Type Description
    half4

    xxxx

    Declaration
    public half4 xxxx { get; }
    Property Value
    Type Description
    half4

    xxxy

    Declaration
    public half4 xxxy { get; }
    Property Value
    Type Description
    half4

    xxxz

    Declaration
    public half4 xxxz { get; }
    Property Value
    Type Description
    half4

    xxy

    Declaration
    public half3 xxy { get; }
    Property Value
    Type Description
    half3

    xxyw

    Declaration
    public half4 xxyw { get; }
    Property Value
    Type Description
    half4

    xxyx

    Declaration
    public half4 xxyx { get; }
    Property Value
    Type Description
    half4

    xxyy

    Declaration
    public half4 xxyy { get; }
    Property Value
    Type Description
    half4

    xxyz

    Declaration
    public half4 xxyz { get; }
    Property Value
    Type Description
    half4

    xxz

    Declaration
    public half3 xxz { get; }
    Property Value
    Type Description
    half3

    xxzw

    Declaration
    public half4 xxzw { get; }
    Property Value
    Type Description
    half4

    xxzx

    Declaration
    public half4 xxzx { get; }
    Property Value
    Type Description
    half4

    xxzy

    Declaration
    public half4 xxzy { get; }
    Property Value
    Type Description
    half4

    xxzz

    Declaration
    public half4 xxzz { get; }
    Property Value
    Type Description
    half4

    xy

    Declaration
    public half2 xy { get; set; }
    Property Value
    Type Description
    half2

    xyw

    Declaration
    public half3 xyw { get; set; }
    Property Value
    Type Description
    half3

    xyww

    Declaration
    public half4 xyww { get; }
    Property Value
    Type Description
    half4

    xywx

    Declaration
    public half4 xywx { get; }
    Property Value
    Type Description
    half4

    xywy

    Declaration
    public half4 xywy { get; }
    Property Value
    Type Description
    half4

    xywz

    Declaration
    public half4 xywz { get; set; }
    Property Value
    Type Description
    half4

    xyx

    Declaration
    public half3 xyx { get; }
    Property Value
    Type Description
    half3

    xyxw

    Declaration
    public half4 xyxw { get; }
    Property Value
    Type Description
    half4

    xyxx

    Declaration
    public half4 xyxx { get; }
    Property Value
    Type Description
    half4

    xyxy

    Declaration
    public half4 xyxy { get; }
    Property Value
    Type Description
    half4

    xyxz

    Declaration
    public half4 xyxz { get; }
    Property Value
    Type Description
    half4

    xyy

    Declaration
    public half3 xyy { get; }
    Property Value
    Type Description
    half3

    xyyw

    Declaration
    public half4 xyyw { get; }
    Property Value
    Type Description
    half4

    xyyx

    Declaration
    public half4 xyyx { get; }
    Property Value
    Type Description
    half4

    xyyy

    Declaration
    public half4 xyyy { get; }
    Property Value
    Type Description
    half4

    xyyz

    Declaration
    public half4 xyyz { get; }
    Property Value
    Type Description
    half4

    xyz

    Declaration
    public half3 xyz { get; set; }
    Property Value
    Type Description
    half3

    xyzw

    Declaration
    public half4 xyzw { get; set; }
    Property Value
    Type Description
    half4

    xyzx

    Declaration
    public half4 xyzx { get; }
    Property Value
    Type Description
    half4

    xyzy

    Declaration
    public half4 xyzy { get; }
    Property Value
    Type Description
    half4

    xyzz

    Declaration
    public half4 xyzz { get; }
    Property Value
    Type Description
    half4

    xz

    Declaration
    public half2 xz { get; set; }
    Property Value
    Type Description
    half2

    xzw

    Declaration
    public half3 xzw { get; set; }
    Property Value
    Type Description
    half3

    xzww

    Declaration
    public half4 xzww { get; }
    Property Value
    Type Description
    half4

    xzwx

    Declaration
    public half4 xzwx { get; }
    Property Value
    Type Description
    half4

    xzwy

    Declaration
    public half4 xzwy { get; set; }
    Property Value
    Type Description
    half4

    xzwz

    Declaration
    public half4 xzwz { get; }
    Property Value
    Type Description
    half4

    xzx

    Declaration
    public half3 xzx { get; }
    Property Value
    Type Description
    half3

    xzxw

    Declaration
    public half4 xzxw { get; }
    Property Value
    Type Description
    half4

    xzxx

    Declaration
    public half4 xzxx { get; }
    Property Value
    Type Description
    half4

    xzxy

    Declaration
    public half4 xzxy { get; }
    Property Value
    Type Description
    half4

    xzxz

    Declaration
    public half4 xzxz { get; }
    Property Value
    Type Description
    half4

    xzy

    Declaration
    public half3 xzy { get; set; }
    Property Value
    Type Description
    half3

    xzyw

    Declaration
    public half4 xzyw { get; set; }
    Property Value
    Type Description
    half4

    xzyx

    Declaration
    public half4 xzyx { get; }
    Property Value
    Type Description
    half4

    xzyy

    Declaration
    public half4 xzyy { get; }
    Property Value
    Type Description
    half4

    xzyz

    Declaration
    public half4 xzyz { get; }
    Property Value
    Type Description
    half4

    xzz

    Declaration
    public half3 xzz { get; }
    Property Value
    Type Description
    half3

    xzzw

    Declaration
    public half4 xzzw { get; }
    Property Value
    Type Description
    half4

    xzzx

    Declaration
    public half4 xzzx { get; }
    Property Value
    Type Description
    half4

    xzzy

    Declaration
    public half4 xzzy { get; }
    Property Value
    Type Description
    half4

    xzzz

    Declaration
    public half4 xzzz { get; }
    Property Value
    Type Description
    half4

    yw

    Declaration
    public half2 yw { get; set; }
    Property Value
    Type Description
    half2

    yww

    Declaration
    public half3 yww { get; }
    Property Value
    Type Description
    half3

    ywww

    Declaration
    public half4 ywww { get; }
    Property Value
    Type Description
    half4

    ywwx

    Declaration
    public half4 ywwx { get; }
    Property Value
    Type Description
    half4

    ywwy

    Declaration
    public half4 ywwy { get; }
    Property Value
    Type Description
    half4

    ywwz

    Declaration
    public half4 ywwz { get; }
    Property Value
    Type Description
    half4

    ywx

    Declaration
    public half3 ywx { get; set; }
    Property Value
    Type Description
    half3

    ywxw

    Declaration
    public half4 ywxw { get; }
    Property Value
    Type Description
    half4

    ywxx

    Declaration
    public half4 ywxx { get; }
    Property Value
    Type Description
    half4

    ywxy

    Declaration
    public half4 ywxy { get; }
    Property Value
    Type Description
    half4

    ywxz

    Declaration
    public half4 ywxz { get; set; }
    Property Value
    Type Description
    half4

    ywy

    Declaration
    public half3 ywy { get; }
    Property Value
    Type Description
    half3

    ywyw

    Declaration
    public half4 ywyw { get; }
    Property Value
    Type Description
    half4

    ywyx

    Declaration
    public half4 ywyx { get; }
    Property Value
    Type Description
    half4

    ywyy

    Declaration
    public half4 ywyy { get; }
    Property Value
    Type Description
    half4

    ywyz

    Declaration
    public half4 ywyz { get; }
    Property Value
    Type Description
    half4

    ywz

    Declaration
    public half3 ywz { get; set; }
    Property Value
    Type Description
    half3

    ywzw

    Declaration
    public half4 ywzw { get; }
    Property Value
    Type Description
    half4

    ywzx

    Declaration
    public half4 ywzx { get; set; }
    Property Value
    Type Description
    half4

    ywzy

    Declaration
    public half4 ywzy { get; }
    Property Value
    Type Description
    half4

    ywzz

    Declaration
    public half4 ywzz { get; }
    Property Value
    Type Description
    half4

    yx

    Declaration
    public half2 yx { get; set; }
    Property Value
    Type Description
    half2

    yxw

    Declaration
    public half3 yxw { get; set; }
    Property Value
    Type Description
    half3

    yxww

    Declaration
    public half4 yxww { get; }
    Property Value
    Type Description
    half4

    yxwx

    Declaration
    public half4 yxwx { get; }
    Property Value
    Type Description
    half4

    yxwy

    Declaration
    public half4 yxwy { get; }
    Property Value
    Type Description
    half4

    yxwz

    Declaration
    public half4 yxwz { get; set; }
    Property Value
    Type Description
    half4

    yxx

    Declaration
    public half3 yxx { get; }
    Property Value
    Type Description
    half3

    yxxw

    Declaration
    public half4 yxxw { get; }
    Property Value
    Type Description
    half4

    yxxx

    Declaration
    public half4 yxxx { get; }
    Property Value
    Type Description
    half4

    yxxy

    Declaration
    public half4 yxxy { get; }
    Property Value
    Type Description
    half4

    yxxz

    Declaration
    public half4 yxxz { get; }
    Property Value
    Type Description
    half4

    yxy

    Declaration
    public half3 yxy { get; }
    Property Value
    Type Description
    half3

    yxyw

    Declaration
    public half4 yxyw { get; }
    Property Value
    Type Description
    half4

    yxyx

    Declaration
    public half4 yxyx { get; }
    Property Value
    Type Description
    half4

    yxyy

    Declaration
    public half4 yxyy { get; }
    Property Value
    Type Description
    half4

    yxyz

    Declaration
    public half4 yxyz { get; }
    Property Value
    Type Description
    half4

    yxz

    Declaration
    public half3 yxz { get; set; }
    Property Value
    Type Description
    half3

    yxzw

    Declaration
    public half4 yxzw { get; set; }
    Property Value
    Type Description
    half4

    yxzx

    Declaration
    public half4 yxzx { get; }
    Property Value
    Type Description
    half4

    yxzy

    Declaration
    public half4 yxzy { get; }
    Property Value
    Type Description
    half4

    yxzz

    Declaration
    public half4 yxzz { get; }
    Property Value
    Type Description
    half4

    yy

    Declaration
    public half2 yy { get; }
    Property Value
    Type Description
    half2

    yyw

    Declaration
    public half3 yyw { get; }
    Property Value
    Type Description
    half3

    yyww

    Declaration
    public half4 yyww { get; }
    Property Value
    Type Description
    half4

    yywx

    Declaration
    public half4 yywx { get; }
    Property Value
    Type Description
    half4

    yywy

    Declaration
    public half4 yywy { get; }
    Property Value
    Type Description
    half4

    yywz

    Declaration
    public half4 yywz { get; }
    Property Value
    Type Description
    half4

    yyx

    Declaration
    public half3 yyx { get; }
    Property Value
    Type Description
    half3

    yyxw

    Declaration
    public half4 yyxw { get; }
    Property Value
    Type Description
    half4

    yyxx

    Declaration
    public half4 yyxx { get; }
    Property Value
    Type Description
    half4

    yyxy

    Declaration
    public half4 yyxy { get; }
    Property Value
    Type Description
    half4

    yyxz

    Declaration
    public half4 yyxz { get; }
    Property Value
    Type Description
    half4

    yyy

    Declaration
    public half3 yyy { get; }
    Property Value
    Type Description
    half3

    yyyw

    Declaration
    public half4 yyyw { get; }
    Property Value
    Type Description
    half4

    yyyx

    Declaration
    public half4 yyyx { get; }
    Property Value
    Type Description
    half4

    yyyy

    Declaration
    public half4 yyyy { get; }
    Property Value
    Type Description
    half4

    yyyz

    Declaration
    public half4 yyyz { get; }
    Property Value
    Type Description
    half4

    yyz

    Declaration
    public half3 yyz { get; }
    Property Value
    Type Description
    half3

    yyzw

    Declaration
    public half4 yyzw { get; }
    Property Value
    Type Description
    half4

    yyzx

    Declaration
    public half4 yyzx { get; }
    Property Value
    Type Description
    half4

    yyzy

    Declaration
    public half4 yyzy { get; }
    Property Value
    Type Description
    half4

    yyzz

    Declaration
    public half4 yyzz { get; }
    Property Value
    Type Description
    half4

    yz

    Declaration
    public half2 yz { get; set; }
    Property Value
    Type Description
    half2

    yzw

    Declaration
    public half3 yzw { get; set; }
    Property Value
    Type Description
    half3

    yzww

    Declaration
    public half4 yzww { get; }
    Property Value
    Type Description
    half4

    yzwx

    Declaration
    public half4 yzwx { get; set; }
    Property Value
    Type Description
    half4

    yzwy

    Declaration
    public half4 yzwy { get; }
    Property Value
    Type Description
    half4

    yzwz

    Declaration
    public half4 yzwz { get; }
    Property Value
    Type Description
    half4

    yzx

    Declaration
    public half3 yzx { get; set; }
    Property Value
    Type Description
    half3

    yzxw

    Declaration
    public half4 yzxw { get; set; }
    Property Value
    Type Description
    half4

    yzxx

    Declaration
    public half4 yzxx { get; }
    Property Value
    Type Description
    half4

    yzxy

    Declaration
    public half4 yzxy { get; }
    Property Value
    Type Description
    half4

    yzxz

    Declaration
    public half4 yzxz { get; }
    Property Value
    Type Description
    half4

    yzy

    Declaration
    public half3 yzy { get; }
    Property Value
    Type Description
    half3

    yzyw

    Declaration
    public half4 yzyw { get; }
    Property Value
    Type Description
    half4

    yzyx

    Declaration
    public half4 yzyx { get; }
    Property Value
    Type Description
    half4

    yzyy

    Declaration
    public half4 yzyy { get; }
    Property Value
    Type Description
    half4

    yzyz

    Declaration
    public half4 yzyz { get; }
    Property Value
    Type Description
    half4

    yzz

    Declaration
    public half3 yzz { get; }
    Property Value
    Type Description
    half3

    yzzw

    Declaration
    public half4 yzzw { get; }
    Property Value
    Type Description
    half4

    yzzx

    Declaration
    public half4 yzzx { get; }
    Property Value
    Type Description
    half4

    yzzy

    Declaration
    public half4 yzzy { get; }
    Property Value
    Type Description
    half4

    yzzz

    Declaration
    public half4 yzzz { get; }
    Property Value
    Type Description
    half4

    zw

    Declaration
    public half2 zw { get; set; }
    Property Value
    Type Description
    half2

    zww

    Declaration
    public half3 zww { get; }
    Property Value
    Type Description
    half3

    zwww

    Declaration
    public half4 zwww { get; }
    Property Value
    Type Description
    half4

    zwwx

    Declaration
    public half4 zwwx { get; }
    Property Value
    Type Description
    half4

    zwwy

    Declaration
    public half4 zwwy { get; }
    Property Value
    Type Description
    half4

    zwwz

    Declaration
    public half4 zwwz { get; }
    Property Value
    Type Description
    half4

    zwx

    Declaration
    public half3 zwx { get; set; }
    Property Value
    Type Description
    half3

    zwxw

    Declaration
    public half4 zwxw { get; }
    Property Value
    Type Description
    half4

    zwxx

    Declaration
    public half4 zwxx { get; }
    Property Value
    Type Description
    half4

    zwxy

    Declaration
    public half4 zwxy { get; set; }
    Property Value
    Type Description
    half4

    zwxz

    Declaration
    public half4 zwxz { get; }
    Property Value
    Type Description
    half4

    zwy

    Declaration
    public half3 zwy { get; set; }
    Property Value
    Type Description
    half3

    zwyw

    Declaration
    public half4 zwyw { get; }
    Property Value
    Type Description
    half4

    zwyx

    Declaration
    public half4 zwyx { get; set; }
    Property Value
    Type Description
    half4

    zwyy

    Declaration
    public half4 zwyy { get; }
    Property Value
    Type Description
    half4

    zwyz

    Declaration
    public half4 zwyz { get; }
    Property Value
    Type Description
    half4

    zwz

    Declaration
    public half3 zwz { get; }
    Property Value
    Type Description
    half3

    zwzw

    Declaration
    public half4 zwzw { get; }
    Property Value
    Type Description
    half4

    zwzx

    Declaration
    public half4 zwzx { get; }
    Property Value
    Type Description
    half4

    zwzy

    Declaration
    public half4 zwzy { get; }
    Property Value
    Type Description
    half4

    zwzz

    Declaration
    public half4 zwzz { get; }
    Property Value
    Type Description
    half4

    zx

    Declaration
    public half2 zx { get; set; }
    Property Value
    Type Description
    half2

    zxw

    Declaration
    public half3 zxw { get; set; }
    Property Value
    Type Description
    half3

    zxww

    Declaration
    public half4 zxww { get; }
    Property Value
    Type Description
    half4

    zxwx

    Declaration
    public half4 zxwx { get; }
    Property Value
    Type Description
    half4

    zxwy

    Declaration
    public half4 zxwy { get; set; }
    Property Value
    Type Description
    half4

    zxwz

    Declaration
    public half4 zxwz { get; }
    Property Value
    Type Description
    half4

    zxx

    Declaration
    public half3 zxx { get; }
    Property Value
    Type Description
    half3

    zxxw

    Declaration
    public half4 zxxw { get; }
    Property Value
    Type Description
    half4

    zxxx

    Declaration
    public half4 zxxx { get; }
    Property Value
    Type Description
    half4

    zxxy

    Declaration
    public half4 zxxy { get; }
    Property Value
    Type Description
    half4

    zxxz

    Declaration
    public half4 zxxz { get; }
    Property Value
    Type Description
    half4

    zxy

    Declaration
    public half3 zxy { get; set; }
    Property Value
    Type Description
    half3

    zxyw

    Declaration
    public half4 zxyw { get; set; }
    Property Value
    Type Description
    half4

    zxyx

    Declaration
    public half4 zxyx { get; }
    Property Value
    Type Description
    half4

    zxyy

    Declaration
    public half4 zxyy { get; }
    Property Value
    Type Description
    half4

    zxyz

    Declaration
    public half4 zxyz { get; }
    Property Value
    Type Description
    half4

    zxz

    Declaration
    public half3 zxz { get; }
    Property Value
    Type Description
    half3

    zxzw

    Declaration
    public half4 zxzw { get; }
    Property Value
    Type Description
    half4

    zxzx

    Declaration
    public half4 zxzx { get; }
    Property Value
    Type Description
    half4

    zxzy

    Declaration
    public half4 zxzy { get; }
    Property Value
    Type Description
    half4

    zxzz

    Declaration
    public half4 zxzz { get; }
    Property Value
    Type Description
    half4

    zy

    Declaration
    public half2 zy { get; set; }
    Property Value
    Type Description
    half2

    zyw

    Declaration
    public half3 zyw { get; set; }
    Property Value
    Type Description
    half3

    zyww

    Declaration
    public half4 zyww { get; }
    Property Value
    Type Description
    half4

    zywx

    Declaration
    public half4 zywx { get; set; }
    Property Value
    Type Description
    half4

    zywy

    Declaration
    public half4 zywy { get; }
    Property Value
    Type Description
    half4

    zywz

    Declaration
    public half4 zywz { get; }
    Property Value
    Type Description
    half4

    zyx

    Declaration
    public half3 zyx { get; set; }
    Property Value
    Type Description
    half3

    zyxw

    Declaration
    public half4 zyxw { get; set; }
    Property Value
    Type Description
    half4

    zyxx

    Declaration
    public half4 zyxx { get; }
    Property Value
    Type Description
    half4

    zyxy

    Declaration
    public half4 zyxy { get; }
    Property Value
    Type Description
    half4

    zyxz

    Declaration
    public half4 zyxz { get; }
    Property Value
    Type Description
    half4

    zyy

    Declaration
    public half3 zyy { get; }
    Property Value
    Type Description
    half3

    zyyw

    Declaration
    public half4 zyyw { get; }
    Property Value
    Type Description
    half4

    zyyx

    Declaration
    public half4 zyyx { get; }
    Property Value
    Type Description
    half4

    zyyy

    Declaration
    public half4 zyyy { get; }
    Property Value
    Type Description
    half4

    zyyz

    Declaration
    public half4 zyyz { get; }
    Property Value
    Type Description
    half4

    zyz

    Declaration
    public half3 zyz { get; }
    Property Value
    Type Description
    half3

    zyzw

    Declaration
    public half4 zyzw { get; }
    Property Value
    Type Description
    half4

    zyzx

    Declaration
    public half4 zyzx { get; }
    Property Value
    Type Description
    half4

    zyzy

    Declaration
    public half4 zyzy { get; }
    Property Value
    Type Description
    half4

    zyzz

    Declaration
    public half4 zyzz { get; }
    Property Value
    Type Description
    half4

    zz

    Declaration
    public half2 zz { get; }
    Property Value
    Type Description
    half2

    zzw

    Declaration
    public half3 zzw { get; }
    Property Value
    Type Description
    half3

    zzww

    Declaration
    public half4 zzww { get; }
    Property Value
    Type Description
    half4

    zzwx

    Declaration
    public half4 zzwx { get; }
    Property Value
    Type Description
    half4

    zzwy

    Declaration
    public half4 zzwy { get; }
    Property Value
    Type Description
    half4

    zzwz

    Declaration
    public half4 zzwz { get; }
    Property Value
    Type Description
    half4

    zzx

    Declaration
    public half3 zzx { get; }
    Property Value
    Type Description
    half3

    zzxw

    Declaration
    public half4 zzxw { get; }
    Property Value
    Type Description
    half4

    zzxx

    Declaration
    public half4 zzxx { get; }
    Property Value
    Type Description
    half4

    zzxy

    Declaration
    public half4 zzxy { get; }
    Property Value
    Type Description
    half4

    zzxz

    Declaration
    public half4 zzxz { get; }
    Property Value
    Type Description
    half4

    zzy

    Declaration
    public half3 zzy { get; }
    Property Value
    Type Description
    half3

    zzyw

    Declaration
    public half4 zzyw { get; }
    Property Value
    Type Description
    half4

    zzyx

    Declaration
    public half4 zzyx { get; }
    Property Value
    Type Description
    half4

    zzyy

    Declaration
    public half4 zzyy { get; }
    Property Value
    Type Description
    half4

    zzyz

    Declaration
    public half4 zzyz { get; }
    Property Value
    Type Description
    half4

    zzz

    Declaration
    public half3 zzz { get; }
    Property Value
    Type Description
    half3

    zzzw

    Declaration
    public half4 zzzw { get; }
    Property Value
    Type Description
    half4

    zzzx

    Declaration
    public half4 zzzx { get; }
    Property Value
    Type Description
    half4

    zzzy

    Declaration
    public half4 zzzy { get; }
    Property Value
    Type Description
    half4

    zzzz

    Declaration
    public half4 zzzz { get; }
    Property Value
    Type Description
    half4

    Methods

    Equals(Object)

    Returns true if the half4 is equal to a given half4, false otherwise.

    Declaration
    public override bool Equals(object o)
    Parameters
    Type Name Description
    System.Object o
    Returns
    Type Description
    System.Boolean
    Overrides
    System.ValueType.Equals(System.Object)

    Equals(half4)

    Returns true if the half4 is equal to a given half4, false otherwise.

    Declaration
    public bool Equals(half4 rhs)
    Parameters
    Type Name Description
    half4 rhs
    Returns
    Type Description
    System.Boolean

    GetHashCode()

    Returns a hash code for the half4.

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    System.Int32
    Overrides
    System.ValueType.GetHashCode()

    ToString()

    Returns a string representation of the half4.

    Declaration
    public override string ToString()
    Returns
    Type Description
    System.String
    Overrides
    System.ValueType.ToString()

    ToString(String, IFormatProvider)

    Returns a string representation of the half4 using a specified format and culture-specific format information.

    Declaration
    public string ToString(string format, IFormatProvider formatProvider)
    Parameters
    Type Name Description
    System.String format
    System.IFormatProvider formatProvider
    Returns
    Type Description
    System.String

    Operators

    Equality(half, half4)

    Returns the result of a componentwise equality operation on a half value and a half4 vector.

    Declaration
    public static bool4 operator ==(half lhs, half4 rhs)
    Parameters
    Type Name Description
    half lhs
    half4 rhs
    Returns
    Type Description
    bool4

    Equality(half4, half)

    Returns the result of a componentwise equality operation on a half4 vector and a half value.

    Declaration
    public static bool4 operator ==(half4 lhs, half rhs)
    Parameters
    Type Name Description
    half4 lhs
    half rhs
    Returns
    Type Description
    bool4

    Equality(half4, half4)

    Returns the result of a componentwise equality operation on two half4 vectors.

    Declaration
    public static bool4 operator ==(half4 lhs, half4 rhs)
    Parameters
    Type Name Description
    half4 lhs
    half4 rhs
    Returns
    Type Description
    bool4

    Explicit(Double to half4)

    Explicitly converts a single double value to a half4 vector by converting it to half and assigning it to every component.

    Declaration
    public static explicit operator half4(double v)
    Parameters
    Type Name Description
    System.Double v
    Returns
    Type Description
    half4

    Explicit(Single to half4)

    Explicitly converts a single float value to a half4 vector by converting it to half and assigning it to every component.

    Declaration
    public static explicit operator half4(float v)
    Parameters
    Type Name Description
    System.Single v
    Returns
    Type Description
    half4

    Explicit(double4 to half4)

    Explicitly converts a double4 vector to a half4 vector by componentwise conversion.

    Declaration
    public static explicit operator half4(double4 v)
    Parameters
    Type Name Description
    double4 v
    Returns
    Type Description
    half4

    Explicit(float4 to half4)

    Explicitly converts a float4 vector to a half4 vector by componentwise conversion.

    Declaration
    public static explicit operator half4(float4 v)
    Parameters
    Type Name Description
    float4 v
    Returns
    Type Description
    half4

    Implicit(half to half4)

    Implicitly converts a single half value to a half4 vector by assigning it to every component.

    Declaration
    public static implicit operator half4(half v)
    Parameters
    Type Name Description
    half v
    Returns
    Type Description
    half4

    Inequality(half, half4)

    Returns the result of a componentwise not equal operation on a half value and a half4 vector.

    Declaration
    public static bool4 operator !=(half lhs, half4 rhs)
    Parameters
    Type Name Description
    half lhs
    half4 rhs
    Returns
    Type Description
    bool4

    Inequality(half4, half)

    Returns the result of a componentwise not equal operation on a half4 vector and a half value.

    Declaration
    public static bool4 operator !=(half4 lhs, half rhs)
    Parameters
    Type Name Description
    half4 lhs
    half rhs
    Returns
    Type Description
    bool4

    Inequality(half4, half4)

    Returns the result of a componentwise not equal operation on two half4 vectors.

    Declaration
    public static bool4 operator !=(half4 lhs, half4 rhs)
    Parameters
    Type Name Description
    half4 lhs
    half4 rhs
    Returns
    Type Description
    bool4
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023