Function rotateY

  • Rotate a 3D vector around the y-axis

    Type Parameters

    Parameters

    • a: BaseArgType

      The vec3 point to rotate

    • b: BaseArgType

      The origin of the rotation

    • rad: number

      The angle of rotation in radians

    • Optional dst: T

      The vector to set. If not passed a new one is created.

    Returns T

    the rotated vector