Maps DOM client coordinates to NDC coordinates.
DOM client coordinates
Optionalout: Vector2Optional Vector2 to store the NDC result
The NDC Vector2, or null if no hit (in PixiTexture context)
Maps Three.js NDC coordinates (-1 to 1) to a Pixi Point (in local sprite coordinates).
Vector2 with NDC coordinates
Optionalout: PointOptional Pixi Point to store the result
The Pixi Point
Maps a Pixi Point (in local sprite coordinates) to Three.js NDC coordinates (-1 to 1).
Pixi Point in local coordinates
Optionalout: Vector2Optional Vector2 to store the NDC result
The NDC Vector2
Maps a Three.js world position to DOM client coordinates.
Three.js Vector3 in world coordinates
Optionalout: PointOptional Pixi Point to store the first result
Array of Points in client coords
Maps a Three.js world position to global Pixi parent coordinates.
Three.js Vector3 in world coordinates
Optionalout: PointOptional Pixi Point to store the result in global Pixi coords
The Pixi Point
Maps a Three.js world position to local Pixi sprite coordinates.
Three.js Vector3 in world coordinates
Optionalout: PointOptional Pixi Point to store the result in local sprite coords
The Pixi Point
Maps a Three.js world position to CanvasView viewport coordinates.
Three.js Vector3 in world coordinates
Optionalout: PointOptional Pixi Point to store the first result
Array of Points in viewport coords
Maps viewport coordinates to NDC coordinates.
Viewport Point coordinates
Optionalout: Vector2Optional Vector2 to store the NDC result
The NDC Vector2, or null if no hit (in PixiTexture context)
OptionalparentParent Three coordinate mapping functions. Only available inside a ThreeRenderTexture context.
Parent Three context for coordinate mapping from ThreeScene to parent Three scene. Only available inside a ThreeRenderTexture context.
Maps a Three.js world position to world coordinates in the parent Three scene.
Maps a Three.js world position to local coordinates on the parent Three mesh surface.
Maps a Three.js world position to UV coordinates.
Raycasts from DOM client coordinates through the camera.
DOM client coordinates (Point with x/y or clientX/clientY)
Optionaltarget: TOptional target object(s) or plane to intersect. Default, scene children.
Optionalrecursive: booleanWhether to recursively traverse children. Default true.
Array of intersections
Raycasts from NDC coordinates through the camera.
NDC coordinates (-1 to 1)
Optionaltarget: TOptional target object(s) or plane to intersect. Default, scene children.
Optionalrecursive: booleanWhether to recursively traverse children. Default true.
Array of intersections
Raycasts from viewport coordinates through the camera.
Viewport Point coordinates
Optionaltarget: TOptional target object(s) or plane to intersect. Default, scene children.
Optionalrecursive: booleanWhether to recursively traverse children. Default true.
Array of intersections
Context value for Three view coordinate mapping. Works in ThreeScene (inside CanvasView) and ThreeRenderTexture.