Search Results for

    Show / Hide Table of Contents

    Struct Half4

    Defines a four component vector, using half precision floating point coordinates.

    Assembly: FlaxEngine.dll
    File: Engine/Core/Math/Half.h
    Syntax
    public struct Half4

    Constructors

    Half4()

    Declaration
    public Half4() = default

    Half4(const Color& c)

    Declaration
    public Half4(const Color& c)
    Parameters
    Color c

    Half4(const float x, const float y, const float z)

    Declaration
    public Half4(const float x, const float y, const float z)
    Parameters
    float x

    float y

    float z

    Half4(const float x, const float y, const float z, const float w)

    Declaration
    public Half4(const float x, const float y, const float z, const float w)
    Parameters
    float x

    float y

    float z

    float w

    Half4(const Float4& v)

    Declaration
    public Half4(const Float4& v)
    Parameters
    Float4 v

    Half4(const Rectangle& rect)

    Declaration
    public Half4(const Rectangle& rect)
    Parameters
    Rectangle rect

    Half4(Half x, Half y, Half z, Half w)

    Declaration
    public Half4(Half x, Half y, Half z, Half w)
    Parameters
    Half x

    Half y

    Half z

    Half w

    Fields

    W

    Gets or sets the W component of the vector.

    Declaration
    public Half W
    Field Value
    Half

    X

    Gets or sets the X component of the vector.

    Declaration
    public Half X
    Field Value
    Half

    Y

    Gets or sets the Y component of the vector.

    Declaration
    public Half Y
    Field Value
    Half

    Z

    Gets or sets the Z component of the vector.

    Declaration
    public Half Z
    Field Value
    Half

    Zero

    Zero vector

    Declaration
    public static Half4 Zero
    Field Value
    Half4

    Methods

    ToFloat2()

    Declaration
    public Float2 ToFloat2() const
    Returns
    Float2

    ToFloat3()

    Declaration
    public Float3 ToFloat3() const
    Returns
    Float3

    ToFloat4()

    Declaration
    public Float4 ToFloat4() const
    Returns
    Float4

    • Improve this Doc
    • View Source
    In This Article
    Back to top Copyright © 2012-2024 Wojciech Figat