Function normForInto

  • b = รข

    Normalises the 3-element vector a based on the given magnitude mag, and stores the result in b.

    This variant is useful if you already know the magnitude

    Parameters

    • a: Vec3

      a 3-element vector object

    • mag: number

      the magnitude

    • b: Vec3

      a 3-element vector in which to store the result

    Returns Vec3

    b as a normalised (based on mag)

Generated using TypeDoc