import { Ray } from "@galacean/engine"; import { XRManagerExtended } from "../../XRManagerExtended"; import { XRFeature } from "../XRFeature"; import { TrackableType } from "./TrackableType"; import { XRHitResult } from "./XRHitResult"; /** * The manager of XR hit test. */ export declare class XRHitTest extends XRFeature { private _tempRay; private _tempPlane; private _tempVec2; private _tempVec30; private _tempVec31; private _tempVec32; private _tempVec33; private _tempVec34; private _tempVec35; /** * @param xrManager - The xr manager */ constructor(xrManager: XRManagerExtended); /** * Hit test. * @param ray - The ray to test * @param type - The type of hit test * @returns The hit result */ hitTest(ray: Ray, type: TrackableType): XRHitResult[]; /** * Screen hit test. * @param x - The x coordinate of the screen point * @param y - The y coordinate of the screen point * @param type - The type of hit test * @returns The hit result */ screenHitTest(x: number, y: number, type: TrackableType): XRHitResult[]; private _hitTestPlane; private _checkPointerWithinPlane; }