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

    Struct float4

    Inherited Members
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetType()
    Namespace: Unity.Mathematics
    Syntax
    [Serializable]
    public struct float4 : IEquatable<float4>, IFormattable

    Constructors

    float4(Boolean)

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

    Declaration
    public float4(bool v)
    Parameters
    Type Name Description
    System.Boolean v

    float4(Double)

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

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

    float4(Int32)

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

    Declaration
    public float4(int v)
    Parameters
    Type Name Description
    System.Int32 v

    float4(Single)

    Constructs a float4 vector from a single float value by assigning it to every component.

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

    float4(Single, Single, Single, Single)

    Constructs a float4 vector from four float values.

    Declaration
    public float4(float x, float y, float z, float w)
    Parameters
    Type Name Description
    System.Single x
    System.Single y
    System.Single z
    System.Single w

    float4(Single, Single, float2)

    Constructs a float4 vector from two float values and a float2 vector.

    Declaration
    public float4(float x, float y, float2 zw)
    Parameters
    Type Name Description
    System.Single x
    System.Single y
    float2 zw

    float4(Single, float2, Single)

    Constructs a float4 vector from a float value, a float2 vector and a float value.

    Declaration
    public float4(float x, float2 yz, float w)
    Parameters
    Type Name Description
    System.Single x
    float2 yz
    System.Single w

    float4(Single, float3)

    Constructs a float4 vector from a float value and a float3 vector.

    Declaration
    public float4(float x, float3 yzw)
    Parameters
    Type Name Description
    System.Single x
    float3 yzw

    float4(UInt32)

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

    Declaration
    public float4(uint v)
    Parameters
    Type Name Description
    System.UInt32 v

    float4(bool4)

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

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

    float4(double4)

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

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

    float4(float2, Single, Single)

    Constructs a float4 vector from a float2 vector and two float values.

    Declaration
    public float4(float2 xy, float z, float w)
    Parameters
    Type Name Description
    float2 xy
    System.Single z
    System.Single w

    float4(float2, float2)

    Constructs a float4 vector from two float2 vectors.

    Declaration
    public float4(float2 xy, float2 zw)
    Parameters
    Type Name Description
    float2 xy
    float2 zw

    float4(float3, Single)

    Constructs a float4 vector from a float3 vector and a float value.

    Declaration
    public float4(float3 xyz, float w)
    Parameters
    Type Name Description
    float3 xyz
    System.Single w

    float4(float4)

    Constructs a float4 vector from a float4 vector.

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

    float4(int4)

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

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

    float4(uint4)

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

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

    Fields

    w

    Declaration
    public float w
    Field Value
    Type Description
    System.Single

    x

    Declaration
    public float x
    Field Value
    Type Description
    System.Single

    y

    Declaration
    public float y
    Field Value
    Type Description
    System.Single

    z

    Declaration
    public float z
    Field Value
    Type Description
    System.Single

    zero

    float4 zero value.

    Declaration
    public static readonly float4 zero
    Field Value
    Type Description
    float4

    Properties

    Item[Int32]

    Returns the float element at a specified index.

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

    ww

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

    www

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

    wwww

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

    wwwx

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

    wwwy

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

    wwwz

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

    wwx

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

    wwxw

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

    wwxx

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

    wwxy

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

    wwxz

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

    wwy

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

    wwyw

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

    wwyx

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

    wwyy

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

    wwyz

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

    wwz

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

    wwzw

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

    wwzx

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

    wwzy

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

    wwzz

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

    wx

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

    wxw

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

    wxww

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

    wxwx

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

    wxwy

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

    wxwz

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

    wxx

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

    wxxw

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

    wxxx

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

    wxxy

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

    wxxz

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

    wxy

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

    wxyw

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

    wxyx

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

    wxyy

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

    wxyz

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

    wxz

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

    wxzw

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

    wxzx

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

    wxzy

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

    wxzz

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

    wy

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

    wyw

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

    wyww

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

    wywx

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

    wywy

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

    wywz

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

    wyx

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

    wyxw

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

    wyxx

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

    wyxy

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

    wyxz

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

    wyy

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

    wyyw

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

    wyyx

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

    wyyy

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

    wyyz

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

    wyz

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

    wyzw

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

    wyzx

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

    wyzy

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

    wyzz

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

    wz

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

    wzw

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

    wzww

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

    wzwx

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

    wzwy

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

    wzwz

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

    wzx

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

    wzxw

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

    wzxx

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

    wzxy

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

    wzxz

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

    wzy

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

    wzyw

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

    wzyx

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

    wzyy

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

    wzyz

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

    wzz

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

    wzzw

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

    wzzx

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

    wzzy

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

    wzzz

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

    xw

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

    xww

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

    xwww

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

    xwwx

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

    xwwy

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

    xwwz

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

    xwx

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

    xwxw

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

    xwxx

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

    xwxy

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

    xwxz

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

    xwy

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

    xwyw

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

    xwyx

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

    xwyy

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

    xwyz

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

    xwz

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

    xwzw

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

    xwzx

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

    xwzy

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

    xwzz

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

    xx

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

    xxw

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

    xxww

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

    xxwx

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

    xxwy

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

    xxwz

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

    xxx

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

    xxxw

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

    xxxx

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

    xxxy

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

    xxxz

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

    xxy

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

    xxyw

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

    xxyx

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

    xxyy

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

    xxyz

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

    xxz

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

    xxzw

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

    xxzx

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

    xxzy

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

    xxzz

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

    xy

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

    xyw

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

    xyww

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

    xywx

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

    xywy

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

    xywz

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

    xyx

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

    xyxw

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

    xyxx

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

    xyxy

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

    xyxz

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

    xyy

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

    xyyw

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

    xyyx

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

    xyyy

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

    xyyz

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

    xyz

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

    xyzw

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

    xyzx

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

    xyzy

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

    xyzz

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

    xz

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

    xzw

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

    xzww

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

    xzwx

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

    xzwy

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

    xzwz

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

    xzx

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

    xzxw

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

    xzxx

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

    xzxy

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

    xzxz

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

    xzy

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

    xzyw

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

    xzyx

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

    xzyy

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

    xzyz

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

    xzz

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

    xzzw

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

    xzzx

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

    xzzy

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

    xzzz

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

    yw

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

    yww

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

    ywww

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

    ywwx

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

    ywwy

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

    ywwz

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

    ywx

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

    ywxw

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

    ywxx

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

    ywxy

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

    ywxz

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

    ywy

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

    ywyw

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

    ywyx

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

    ywyy

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

    ywyz

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

    ywz

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

    ywzw

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

    ywzx

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

    ywzy

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

    ywzz

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

    yx

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

    yxw

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

    yxww

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

    yxwx

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

    yxwy

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

    yxwz

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

    yxx

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

    yxxw

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

    yxxx

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

    yxxy

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

    yxxz

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

    yxy

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

    yxyw

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

    yxyx

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

    yxyy

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

    yxyz

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

    yxz

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

    yxzw

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

    yxzx

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

    yxzy

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

    yxzz

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

    yy

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

    yyw

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

    yyww

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

    yywx

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

    yywy

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

    yywz

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

    yyx

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

    yyxw

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

    yyxx

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

    yyxy

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

    yyxz

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

    yyy

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

    yyyw

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

    yyyx

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

    yyyy

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

    yyyz

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

    yyz

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

    yyzw

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

    yyzx

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

    yyzy

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

    yyzz

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

    yz

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

    yzw

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

    yzww

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

    yzwx

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

    yzwy

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

    yzwz

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

    yzx

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

    yzxw

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

    yzxx

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

    yzxy

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

    yzxz

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

    yzy

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

    yzyw

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

    yzyx

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

    yzyy

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

    yzyz

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

    yzz

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

    yzzw

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

    yzzx

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

    yzzy

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

    yzzz

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

    zw

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

    zww

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

    zwww

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

    zwwx

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

    zwwy

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

    zwwz

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

    zwx

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

    zwxw

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

    zwxx

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

    zwxy

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

    zwxz

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

    zwy

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

    zwyw

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

    zwyx

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

    zwyy

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

    zwyz

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

    zwz

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

    zwzw

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

    zwzx

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

    zwzy

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

    zwzz

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

    zx

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

    zxw

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

    zxww

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

    zxwx

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

    zxwy

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

    zxwz

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

    zxx

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

    zxxw

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

    zxxx

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

    zxxy

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

    zxxz

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

    zxy

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

    zxyw

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

    zxyx

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

    zxyy

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

    zxyz

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

    zxz

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

    zxzw

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

    zxzx

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

    zxzy

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

    zxzz

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

    zy

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

    zyw

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

    zyww

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

    zywx

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

    zywy

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

    zywz

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

    zyx

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

    zyxw

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

    zyxx

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

    zyxy

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

    zyxz

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

    zyy

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

    zyyw

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

    zyyx

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

    zyyy

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

    zyyz

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

    zyz

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

    zyzw

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

    zyzx

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

    zyzy

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

    zyzz

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

    zz

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

    zzw

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

    zzww

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

    zzwx

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

    zzwy

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

    zzwz

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

    zzx

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

    zzxw

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

    zzxx

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

    zzxy

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

    zzxz

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

    zzy

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

    zzyw

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

    zzyx

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

    zzyy

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

    zzyz

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

    zzz

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

    zzzw

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

    zzzx

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

    zzzy

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

    zzzz

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

    Methods

    Equals(Object)

    Returns true if the float4 is equal to a given float4, 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(float4)

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

    Declaration
    public bool Equals(float4 rhs)
    Parameters
    Type Name Description
    float4 rhs
    Returns
    Type Description
    System.Boolean
    Implements
    System.IEquatable<T>.Equals(T)

    GetHashCode()

    Returns a hash code for the float4.

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

    ToString()

    Returns a string representation of the float4.

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

    ToString(String, IFormatProvider)

    Returns a string representation of the float4 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
    Implements
    System.IFormattable.ToString(System.String, System.IFormatProvider)

    Operators

    Addition(Single, float4)

    Returns the result of a componentwise addition operation on a float value and a float4 vector.

    Declaration
    public static float4 operator +(float lhs, float4 rhs)
    Parameters
    Type Name Description
    System.Single lhs
    float4 rhs
    Returns
    Type Description
    float4

    Addition(float4, Single)

    Returns the result of a componentwise addition operation on a float4 vector and a float value.

    Declaration
    public static float4 operator +(float4 lhs, float rhs)
    Parameters
    Type Name Description
    float4 lhs
    System.Single rhs
    Returns
    Type Description
    float4

    Addition(float4, float4)

    Returns the result of a componentwise addition operation on two float4 vectors.

    Declaration
    public static float4 operator +(float4 lhs, float4 rhs)
    Parameters
    Type Name Description
    float4 lhs
    float4 rhs
    Returns
    Type Description
    float4

    Decrement(float4)

    Returns the result of a componentwise decrement operation on a float4 vector.

    Declaration
    public static float4 operator --(float4 val)
    Parameters
    Type Name Description
    float4 val
    Returns
    Type Description
    float4

    Division(Single, float4)

    Returns the result of a componentwise division operation on a float value and a float4 vector.

    Declaration
    public static float4 operator /(float lhs, float4 rhs)
    Parameters
    Type Name Description
    System.Single lhs
    float4 rhs
    Returns
    Type Description
    float4

    Division(float4, Single)

    Returns the result of a componentwise division operation on a float4 vector and a float value.

    Declaration
    public static float4 operator /(float4 lhs, float rhs)
    Parameters
    Type Name Description
    float4 lhs
    System.Single rhs
    Returns
    Type Description
    float4

    Division(float4, float4)

    Returns the result of a componentwise division operation on two float4 vectors.

    Declaration
    public static float4 operator /(float4 lhs, float4 rhs)
    Parameters
    Type Name Description
    float4 lhs
    float4 rhs
    Returns
    Type Description
    float4

    Equality(Single, float4)

    Returns the result of a componentwise equality operation on a float value and a float4 vector.

    Declaration
    public static bool4 operator ==(float lhs, float4 rhs)
    Parameters
    Type Name Description
    System.Single lhs
    float4 rhs
    Returns
    Type Description
    bool4

    Equality(float4, Single)

    Returns the result of a componentwise equality operation on a float4 vector and a float value.

    Declaration
    public static bool4 operator ==(float4 lhs, float rhs)
    Parameters
    Type Name Description
    float4 lhs
    System.Single rhs
    Returns
    Type Description
    bool4

    Equality(float4, float4)

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

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

    Explicit(Boolean to float4)

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

    Declaration
    public static explicit operator float4(bool v)
    Parameters
    Type Name Description
    System.Boolean v
    Returns
    Type Description
    float4

    Explicit(Double to float4)

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

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

    Explicit(bool4 to float4)

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

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

    Explicit(double4 to float4)

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

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

    GreaterThan(Single, float4)

    Returns the result of a componentwise greater than operation on a float value and a float4 vector.

    Declaration
    public static bool4 operator>(float lhs, float4 rhs)
    Parameters
    Type Name Description
    System.Single lhs
    float4 rhs
    Returns
    Type Description
    bool4

    GreaterThan(float4, Single)

    Returns the result of a componentwise greater than operation on a float4 vector and a float value.

    Declaration
    public static bool4 operator>(float4 lhs, float rhs)
    Parameters
    Type Name Description
    float4 lhs
    System.Single rhs
    Returns
    Type Description
    bool4

    GreaterThan(float4, float4)

    Returns the result of a componentwise greater than operation on two float4 vectors.

    Declaration
    public static bool4 operator>(float4 lhs, float4 rhs)
    Parameters
    Type Name Description
    float4 lhs
    float4 rhs
    Returns
    Type Description
    bool4

    GreaterThanOrEqual(Single, float4)

    Returns the result of a componentwise greater or equal operation on a float value and a float4 vector.

    Declaration
    public static bool4 operator >=(float lhs, float4 rhs)
    Parameters
    Type Name Description
    System.Single lhs
    float4 rhs
    Returns
    Type Description
    bool4

    GreaterThanOrEqual(float4, Single)

    Returns the result of a componentwise greater or equal operation on a float4 vector and a float value.

    Declaration
    public static bool4 operator >=(float4 lhs, float rhs)
    Parameters
    Type Name Description
    float4 lhs
    System.Single rhs
    Returns
    Type Description
    bool4

    GreaterThanOrEqual(float4, float4)

    Returns the result of a componentwise greater or equal operation on two float4 vectors.

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

    Implicit(Int32 to float4)

    Implicitly converts a single int value to a float4 vector by converting it to float and assigning it to every component.

    Declaration
    public static implicit operator float4(int v)
    Parameters
    Type Name Description
    System.Int32 v
    Returns
    Type Description
    float4

    Implicit(Single to float4)

    Implicitly converts a single float value to a float4 vector by assigning it to every component.

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

    Implicit(UInt32 to float4)

    Implicitly converts a single uint value to a float4 vector by converting it to float and assigning it to every component.

    Declaration
    public static implicit operator float4(uint v)
    Parameters
    Type Name Description
    System.UInt32 v
    Returns
    Type Description
    float4

    Implicit(float4 to Vector4)

    Declaration
    public static implicit operator Vector4(float4 v)
    Parameters
    Type Name Description
    float4 v
    Returns
    Type Description
    Vector4

    Implicit(int4 to float4)

    Implicitly converts a int4 vector to a float4 vector by componentwise conversion.

    Declaration
    public static implicit operator float4(int4 v)
    Parameters
    Type Name Description
    int4 v
    Returns
    Type Description
    float4

    Implicit(uint4 to float4)

    Implicitly converts a uint4 vector to a float4 vector by componentwise conversion.

    Declaration
    public static implicit operator float4(uint4 v)
    Parameters
    Type Name Description
    uint4 v
    Returns
    Type Description
    float4

    Implicit(Vector4 to float4)

    Declaration
    public static implicit operator float4(Vector4 v)
    Parameters
    Type Name Description
    Vector4 v
    Returns
    Type Description
    float4

    Increment(float4)

    Returns the result of a componentwise increment operation on a float4 vector.

    Declaration
    public static float4 operator ++(float4 val)
    Parameters
    Type Name Description
    float4 val
    Returns
    Type Description
    float4

    Inequality(Single, float4)

    Returns the result of a componentwise not equal operation on a float value and a float4 vector.

    Declaration
    public static bool4 operator !=(float lhs, float4 rhs)
    Parameters
    Type Name Description
    System.Single lhs
    float4 rhs
    Returns
    Type Description
    bool4

    Inequality(float4, Single)

    Returns the result of a componentwise not equal operation on a float4 vector and a float value.

    Declaration
    public static bool4 operator !=(float4 lhs, float rhs)
    Parameters
    Type Name Description
    float4 lhs
    System.Single rhs
    Returns
    Type Description
    bool4

    Inequality(float4, float4)

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

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

    LessThan(Single, float4)

    Returns the result of a componentwise less than operation on a float value and a float4 vector.

    Declaration
    public static bool4 operator <(float lhs, float4 rhs)
    Parameters
    Type Name Description
    System.Single lhs
    float4 rhs
    Returns
    Type Description
    bool4

    LessThan(float4, Single)

    Returns the result of a componentwise less than operation on a float4 vector and a float value.

    Declaration
    public static bool4 operator <(float4 lhs, float rhs)
    Parameters
    Type Name Description
    float4 lhs
    System.Single rhs
    Returns
    Type Description
    bool4

    LessThan(float4, float4)

    Returns the result of a componentwise less than operation on two float4 vectors.

    Declaration
    public static bool4 operator <(float4 lhs, float4 rhs)
    Parameters
    Type Name Description
    float4 lhs
    float4 rhs
    Returns
    Type Description
    bool4

    LessThanOrEqual(Single, float4)

    Returns the result of a componentwise less or equal operation on a float value and a float4 vector.

    Declaration
    public static bool4 operator <=(float lhs, float4 rhs)
    Parameters
    Type Name Description
    System.Single lhs
    float4 rhs
    Returns
    Type Description
    bool4

    LessThanOrEqual(float4, Single)

    Returns the result of a componentwise less or equal operation on a float4 vector and a float value.

    Declaration
    public static bool4 operator <=(float4 lhs, float rhs)
    Parameters
    Type Name Description
    float4 lhs
    System.Single rhs
    Returns
    Type Description
    bool4

    LessThanOrEqual(float4, float4)

    Returns the result of a componentwise less or equal operation on two float4 vectors.

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

    Modulus(Single, float4)

    Returns the result of a componentwise modulus operation on a float value and a float4 vector.

    Declaration
    public static float4 operator %(float lhs, float4 rhs)
    Parameters
    Type Name Description
    System.Single lhs
    float4 rhs
    Returns
    Type Description
    float4

    Modulus(float4, Single)

    Returns the result of a componentwise modulus operation on a float4 vector and a float value.

    Declaration
    public static float4 operator %(float4 lhs, float rhs)
    Parameters
    Type Name Description
    float4 lhs
    System.Single rhs
    Returns
    Type Description
    float4

    Modulus(float4, float4)

    Returns the result of a componentwise modulus operation on two float4 vectors.

    Declaration
    public static float4 operator %(float4 lhs, float4 rhs)
    Parameters
    Type Name Description
    float4 lhs
    float4 rhs
    Returns
    Type Description
    float4

    Multiply(Single, float4)

    Returns the result of a componentwise multiplication operation on a float value and a float4 vector.

    Declaration
    public static float4 operator *(float lhs, float4 rhs)
    Parameters
    Type Name Description
    System.Single lhs
    float4 rhs
    Returns
    Type Description
    float4

    Multiply(float4, Single)

    Returns the result of a componentwise multiplication operation on a float4 vector and a float value.

    Declaration
    public static float4 operator *(float4 lhs, float rhs)
    Parameters
    Type Name Description
    float4 lhs
    System.Single rhs
    Returns
    Type Description
    float4

    Multiply(float4, float4)

    Returns the result of a componentwise multiplication operation on two float4 vectors.

    Declaration
    public static float4 operator *(float4 lhs, float4 rhs)
    Parameters
    Type Name Description
    float4 lhs
    float4 rhs
    Returns
    Type Description
    float4

    Subtraction(Single, float4)

    Returns the result of a componentwise subtraction operation on a float value and a float4 vector.

    Declaration
    public static float4 operator -(float lhs, float4 rhs)
    Parameters
    Type Name Description
    System.Single lhs
    float4 rhs
    Returns
    Type Description
    float4

    Subtraction(float4, Single)

    Returns the result of a componentwise subtraction operation on a float4 vector and a float value.

    Declaration
    public static float4 operator -(float4 lhs, float rhs)
    Parameters
    Type Name Description
    float4 lhs
    System.Single rhs
    Returns
    Type Description
    float4

    Subtraction(float4, float4)

    Returns the result of a componentwise subtraction operation on two float4 vectors.

    Declaration
    public static float4 operator -(float4 lhs, float4 rhs)
    Parameters
    Type Name Description
    float4 lhs
    float4 rhs
    Returns
    Type Description
    float4

    UnaryNegation(float4)

    Returns the result of a componentwise unary minus operation on a float4 vector.

    Declaration
    public static float4 operator -(float4 val)
    Parameters
    Type Name Description
    float4 val
    Returns
    Type Description
    float4

    UnaryPlus(float4)

    Returns the result of a componentwise unary plus operation on a float4 vector.

    Declaration
    public static float4 operator +(float4 val)
    Parameters
    Type Name Description
    float4 val
    Returns
    Type Description
    float4
    In This Article
    • Constructors
      • float4(Boolean)
      • float4(Double)
      • float4(Int32)
      • float4(Single)
      • float4(Single, Single, Single, Single)
      • float4(Single, Single, float2)
      • float4(Single, float2, Single)
      • float4(Single, float3)
      • float4(UInt32)
      • float4(bool4)
      • float4(double4)
      • float4(float2, Single, Single)
      • float4(float2, float2)
      • float4(float3, Single)
      • float4(float4)
      • float4(int4)
      • float4(uint4)
    • Fields
      • w
      • x
      • y
      • z
      • zero
    • Properties
      • Item[Int32]
      • ww
      • www
      • wwww
      • wwwx
      • wwwy
      • wwwz
      • wwx
      • wwxw
      • wwxx
      • wwxy
      • wwxz
      • wwy
      • wwyw
      • wwyx
      • wwyy
      • wwyz
      • wwz
      • wwzw
      • wwzx
      • wwzy
      • wwzz
      • wx
      • wxw
      • wxww
      • wxwx
      • wxwy
      • wxwz
      • wxx
      • wxxw
      • wxxx
      • wxxy
      • wxxz
      • wxy
      • wxyw
      • wxyx
      • wxyy
      • wxyz
      • wxz
      • wxzw
      • wxzx
      • wxzy
      • wxzz
      • wy
      • wyw
      • wyww
      • wywx
      • wywy
      • wywz
      • wyx
      • wyxw
      • wyxx
      • wyxy
      • wyxz
      • wyy
      • wyyw
      • wyyx
      • wyyy
      • wyyz
      • wyz
      • wyzw
      • wyzx
      • wyzy
      • wyzz
      • wz
      • wzw
      • wzww
      • wzwx
      • wzwy
      • wzwz
      • wzx
      • wzxw
      • wzxx
      • wzxy
      • wzxz
      • wzy
      • wzyw
      • wzyx
      • wzyy
      • wzyz
      • wzz
      • wzzw
      • wzzx
      • wzzy
      • wzzz
      • xw
      • xww
      • xwww
      • xwwx
      • xwwy
      • xwwz
      • xwx
      • xwxw
      • xwxx
      • xwxy
      • xwxz
      • xwy
      • xwyw
      • xwyx
      • xwyy
      • xwyz
      • xwz
      • xwzw
      • xwzx
      • xwzy
      • xwzz
      • xx
      • xxw
      • xxww
      • xxwx
      • xxwy
      • xxwz
      • xxx
      • xxxw
      • xxxx
      • xxxy
      • xxxz
      • xxy
      • xxyw
      • xxyx
      • xxyy
      • xxyz
      • xxz
      • xxzw
      • xxzx
      • xxzy
      • xxzz
      • xy
      • xyw
      • xyww
      • xywx
      • xywy
      • xywz
      • xyx
      • xyxw
      • xyxx
      • xyxy
      • xyxz
      • xyy
      • xyyw
      • xyyx
      • xyyy
      • xyyz
      • xyz
      • xyzw
      • xyzx
      • xyzy
      • xyzz
      • xz
      • xzw
      • xzww
      • xzwx
      • xzwy
      • xzwz
      • xzx
      • xzxw
      • xzxx
      • xzxy
      • xzxz
      • xzy
      • xzyw
      • xzyx
      • xzyy
      • xzyz
      • xzz
      • xzzw
      • xzzx
      • xzzy
      • xzzz
      • yw
      • yww
      • ywww
      • ywwx
      • ywwy
      • ywwz
      • ywx
      • ywxw
      • ywxx
      • ywxy
      • ywxz
      • ywy
      • ywyw
      • ywyx
      • ywyy
      • ywyz
      • ywz
      • ywzw
      • ywzx
      • ywzy
      • ywzz
      • yx
      • yxw
      • yxww
      • yxwx
      • yxwy
      • yxwz
      • yxx
      • yxxw
      • yxxx
      • yxxy
      • yxxz
      • yxy
      • yxyw
      • yxyx
      • yxyy
      • yxyz
      • yxz
      • yxzw
      • yxzx
      • yxzy
      • yxzz
      • yy
      • yyw
      • yyww
      • yywx
      • yywy
      • yywz
      • yyx
      • yyxw
      • yyxx
      • yyxy
      • yyxz
      • yyy
      • yyyw
      • yyyx
      • yyyy
      • yyyz
      • yyz
      • yyzw
      • yyzx
      • yyzy
      • yyzz
      • yz
      • yzw
      • yzww
      • yzwx
      • yzwy
      • yzwz
      • yzx
      • yzxw
      • yzxx
      • yzxy
      • yzxz
      • yzy
      • yzyw
      • yzyx
      • yzyy
      • yzyz
      • yzz
      • yzzw
      • yzzx
      • yzzy
      • yzzz
      • zw
      • zww
      • zwww
      • zwwx
      • zwwy
      • zwwz
      • zwx
      • zwxw
      • zwxx
      • zwxy
      • zwxz
      • zwy
      • zwyw
      • zwyx
      • zwyy
      • zwyz
      • zwz
      • zwzw
      • zwzx
      • zwzy
      • zwzz
      • zx
      • zxw
      • zxww
      • zxwx
      • zxwy
      • zxwz
      • zxx
      • zxxw
      • zxxx
      • zxxy
      • zxxz
      • zxy
      • zxyw
      • zxyx
      • zxyy
      • zxyz
      • zxz
      • zxzw
      • zxzx
      • zxzy
      • zxzz
      • zy
      • zyw
      • zyww
      • zywx
      • zywy
      • zywz
      • zyx
      • zyxw
      • zyxx
      • zyxy
      • zyxz
      • zyy
      • zyyw
      • zyyx
      • zyyy
      • zyyz
      • zyz
      • zyzw
      • zyzx
      • zyzy
      • zyzz
      • zz
      • zzw
      • zzww
      • zzwx
      • zzwy
      • zzwz
      • zzx
      • zzxw
      • zzxx
      • zzxy
      • zzxz
      • zzy
      • zzyw
      • zzyx
      • zzyy
      • zzyz
      • zzz
      • zzzw
      • zzzx
      • zzzy
      • zzzz
    • Methods
      • Equals(Object)
      • Equals(float4)
      • GetHashCode()
      • ToString()
      • ToString(String, IFormatProvider)
    • Operators
      • Addition(Single, float4)
      • Addition(float4, Single)
      • Addition(float4, float4)
      • Decrement(float4)
      • Division(Single, float4)
      • Division(float4, Single)
      • Division(float4, float4)
      • Equality(Single, float4)
      • Equality(float4, Single)
      • Equality(float4, float4)
      • Explicit(Boolean to float4)
      • Explicit(Double to float4)
      • Explicit(bool4 to float4)
      • Explicit(double4 to float4)
      • GreaterThan(Single, float4)
      • GreaterThan(float4, Single)
      • GreaterThan(float4, float4)
      • GreaterThanOrEqual(Single, float4)
      • GreaterThanOrEqual(float4, Single)
      • GreaterThanOrEqual(float4, float4)
      • Implicit(Int32 to float4)
      • Implicit(Single to float4)
      • Implicit(UInt32 to float4)
      • Implicit(float4 to Vector4)
      • Implicit(int4 to float4)
      • Implicit(uint4 to float4)
      • Implicit(Vector4 to float4)
      • Increment(float4)
      • Inequality(Single, float4)
      • Inequality(float4, Single)
      • Inequality(float4, float4)
      • LessThan(Single, float4)
      • LessThan(float4, Single)
      • LessThan(float4, float4)
      • LessThanOrEqual(Single, float4)
      • LessThanOrEqual(float4, Single)
      • LessThanOrEqual(float4, float4)
      • Modulus(Single, float4)
      • Modulus(float4, Single)
      • Modulus(float4, float4)
      • Multiply(Single, float4)
      • Multiply(float4, Single)
      • Multiply(float4, float4)
      • Subtraction(Single, float4)
      • Subtraction(float4, Single)
      • Subtraction(float4, float4)
      • UnaryNegation(float4)
      • UnaryPlus(float4)
    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