docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Constructor Mod

    Mod(string, string, string, bool)

    Initializes and returns an instance of Mod math operation layer.

    Declaration
    public Mod(string name, string a, string b, bool fmod = false)
    Parameters
    Type Name Description
    string name

    The name to use for the output tensor of the layer.

    string a

    The name to use for the divisor input tensor of the layer.

    string b

    The name to use for the dividend input tensor of the layer.

    bool fmod

    Whether to have the sign of the remainder the same as that of the dividend rather than that of the divisor.

    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)