PixiThree - v0.0.16
    Preparing search index...

    Function mapThreeToNdc

    • Maps a 3D world position to NDC coordinates in the camera's view.

      Parameters

      • vec3: Vector3

        The world position

      • camera: Camera

        The camera to project through

      • Optionalout: Vector2

        Optional Vector2 to store the NDC result (-1 to 1)

      Returns Vector2

      The NDC Vector2