Professional Documents
Culture Documents
Laser Scan
Laser Scan
Ts Part:
LaserScanData() {
this.isLaserScan = !this.isLaserScan;
if (this.isLaserScan == true) {
this.tagDropdown = false;
console.log(this.cameraPitch);
console.log(this.cameraYaw);
this.viewerImg.setPitch(0);
this.viewerImg.setYaw(0);
}
else {
this.tagDropdown = true;
const hfov = this.viewerImg.getHfov(); // Get the horizontal field of view
const hfovRad = hfov * (Math.PI / 180);
const radius = (3192 / 2) / Math.tan(hfovRad / 2);
this.setCamera = new SetCamera(this.yaw, this.pitch, false, radius);
this._pannellumViewerService.triggerCameraOrientationChange(this.setCamera);
this.viewerImg.setYaw(this.cameraYaw); //decrease- left increase:right
this.viewerImg.setPitch(this.cameraPitch);
console.log("cameraPitch", this.cameraPitch);
console.log("cameraYaw", this.cameraYaw);