On this page

Function scale

  • Scales a vec3 by a scalar number

    Parameters

    • out: vec3

      the receiving vector

    • a: ReadonlyVec3

      the vector to scale

    • b: number

      amount to scale the vector by

    Returns vec3

    out

Was this helpful?
SDK JS
Reference
scale