PiMath API
    Preparing search index...

    Interface RandomVectorOptions

    The options that only exist for vectors, shared by rndVector and rndVector3.

    interface RandomVectorOptions {
        allow?: { zero?: boolean };
        primitive?: boolean;
    }

    Hierarchy (View Summary)

    Index
    allow?: { zero?: boolean }

    Type Declaration

    • Optionalzero?: boolean

      true allows the null vector (default false).

    primitive?: boolean

    Integer components with no common divisor, e.g. (1, 2) and never (2, 4) (default false). Requires integers.