@masatomakino/threejs-interactive-object
    Preparing search index...

    Function convertToMousePosition

    • マウスイベントをWebGL座標系に変換する

      Parameters

      • canvas: HTMLCanvasElement
      • event: PointerEvent
      • viewport: undefined | Vector4
      • Optionalmouse: Vector2

        オプション 指定された場合、結果をこのVector2に上書きする

      Returns Vector2