Search Results for

    Show / Hide Table of Contents

    Struct Half2

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

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

    Constructors

    Half2()

    Default constructor

    Declaration
    public Half2() = default

    Fields

    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

    Zero

    Zero vector

    Declaration
    public static Half2 Zero
    Field Value
    Half2

    Methods

    Half2(const Float2& v)

    Init

    Declaration
    public Half2(const Float2& v)
    Parameters
    Float2 v

    X and Y components

    Returns
    FORCE_INLINE

    Half2(float x, float y)

    Init

    Declaration
    public Half2(float x, float y)
    Parameters
    float x

    X component

    float y

    Y component

    Returns
    FORCE_INLINE

    Half2(Half x, Half y)

    Init

    Declaration
    public Half2(Half x, Half y)
    Parameters
    Half x

    X component

    Half y

    Y component

    Returns
    FORCE_INLINE

    ToFloat2()

    Declaration
    public Float2 ToFloat2() const
    Returns
    Float2

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