ThreeSceneContextValue with bijection functions for coordinate mapping
Context value for Three view coordinate mapping. Works in ThreeScene (inside CanvasView) and ThreeRenderTexture.
Maps DOM client coordinates to NDC coordinates.
Maps Three.js NDC coordinates (-1 to 1) to a Pixi Point (in local sprite coordinates).
Maps a Pixi Point (in local sprite coordinates) to Three.js NDC coordinates (-1 to 1).
Maps a Three.js world position to DOM client coordinates.
Maps a Three.js world position to global Pixi parent coordinates.
Maps a Three.js world position to local Pixi sprite coordinates.
Maps a Three.js world position to CanvasView viewport coordinates.
Maps viewport coordinates to NDC coordinates.
OptionalparentThree?: ThreeViewParentThreeContextValueParent Three coordinate mapping functions. Only available inside a ThreeRenderTexture context.
Raycasts from DOM client coordinates through the camera.
Raycasts from NDC coordinates through the camera.
Raycasts from viewport coordinates through the camera.
Hook to access the Three.js scene context. Provides coordinate mapping utilities between Pixi and Three.js coordinate spaces.