@osobh/reactar
Version:
AR Library for React Native and Expo
27 lines (26 loc) • 631 B
TypeScript
import { THREE } from 'expo-three';
export interface Plane {
id: string;
center: THREE.Vector3;
normal: THREE.Vector3;
extent: {
width: number;
length: number;
};
confidence: number;
}
export declare class PlaneDetection {
private scene;
private camera;
private planes;
private planeMeshes;
private planeMaterial;
constructor();
setScene(scene: THREE.Scene): void;
setCamera(camera: THREE.Camera): void;
detectPlanes(): Promise<Plane[]>;
private simulatePlaneDetection;
private updatePlanes;
getDetectedPlanes(): Plane[];
clear(): void;
}