docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Constructor HalfVector3

    HalfVector3(Vector3, bool3)

    Constructor

    Declaration
    public HalfVector3(Vector3 vector3, bool3 axisToSynchronize)
    Parameters
    Type Name Description
    Vector3 vector3

    The initial axial values (converted to half floats) when instantiated.

    bool3 axisToSynchronize

    HalfVector3(Vector3)

    Constructor that defaults to all axis being synchronized.

    Declaration
    public HalfVector3(Vector3 vector3)
    Parameters
    Type Name Description
    Vector3 vector3

    The initial axial values (converted to half floats) when instantiated.

    HalfVector3(float, float, float, bool3)

    Constructor

    Declaration
    public HalfVector3(float x, float y, float z, bool3 axisToSynchronize)
    Parameters
    Type Name Description
    float x

    The initial x axis (converted to half float) value when instantiated.

    float y

    The initial y axis (converted to half float) value when instantiated.

    float z

    The initial z axis (converted to half float) value when instantiated.

    bool3 axisToSynchronize

    The axis to synchronize.

    HalfVector3(float, float, float)

    Constructor that defaults to all axis being synchronized.

    Declaration
    public HalfVector3(float x, float y, float z)
    Parameters
    Type Name Description
    float x

    The initial x axis (converted to half float) value when instantiated.

    float y

    The initial y axis (converted to half float) value when instantiated.

    float z

    The initial z axis (converted to half float) value when instantiated.

    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)