Search Results for

    Show / Hide Table of Contents

    Class NumberExtensions

    Inheritance
    object
    NumberExtensions
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Glitch9
    Assembly: Glitch9.dll
    Syntax
    public static class NumberExtensions

    Methods

    | Edit this page View Source

    HasFlag(int, int)

    Declaration
    public static bool HasFlag(this int value, int flag)
    Parameters
    Type Name Description
    int value
    int flag
    Returns
    Type Description
    bool
    | Edit this page View Source

    IsEven(int)

    Declaration
    public static bool IsEven(this int number)
    Parameters
    Type Name Description
    int number
    Returns
    Type Description
    bool
    | Edit this page View Source

    IsOdd(int)

    Declaration
    public static bool IsOdd(this int number)
    Parameters
    Type Name Description
    int number
    Returns
    Type Description
    bool
    | Edit this page View Source

    IsSingleBit(long)

    Declaration
    public static bool IsSingleBit(this long v)
    Parameters
    Type Name Description
    long v
    Returns
    Type Description
    bool
    | Edit this page View Source

    NextIndex(int, int, bool)

    Declaration
    public static int NextIndex(this int idx, int count, bool loop = true)
    Parameters
    Type Name Description
    int idx
    int count
    bool loop
    Returns
    Type Description
    int
    | Edit this page View Source

    PreviousIndex(int, int, bool)

    Declaration
    public static int PreviousIndex(this int idx, int count, bool loop = true)
    Parameters
    Type Name Description
    int idx
    int count
    bool loop
    Returns
    Type Description
    int
    | Edit this page View Source

    ToInt32(double)

    Declaration
    public static int ToInt32(this double value)
    Parameters
    Type Name Description
    double value
    Returns
    Type Description
    int
    | Edit this page View Source

    ToInt32(long)

    Declaration
    public static int ToInt32(this long value)
    Parameters
    Type Name Description
    long value
    Returns
    Type Description
    int
    | Edit this page View Source

    ToInt32(float)

    Declaration
    public static int ToInt32(this float value)
    Parameters
    Type Name Description
    float value
    Returns
    Type Description
    int
    • Edit this page
    • View Source
    In this article
    Back to top AI DevKit Documentation