Function multiply

  • Multiplies a vector by another vector (component-wise); assumes a and b have the same length.

    Parameters

    • a: Vec2

      Operand vector.

    • b: Vec2

      Operand vector.

    • Optional dst: Vec2

      vector to hold result. If not passed in a new one is created.

    Returns Vec2

    The vector of products of entries of a and b.