math docs
    Preparing search index...

    Function toBuffer

    • Writes the components of a vec2 to a buffer

      Parameters

      • outBuffer: MutableArrayLike<number>

        The output buffer

      • vec: readonly [number, number]

        The source vector

      • startIndex: number

        The starting index in the buffer

      Returns MutableArrayLike<number>

      The output buffer