wip
parent
2654d1178b
commit
b6266a160e
|
|
@ -36,7 +36,7 @@ export interface ArTrackingData {
|
||||||
export interface MetricsLog {
|
export interface MetricsLog {
|
||||||
interactions: InteractionEvent[];
|
interactions: InteractionEvent[];
|
||||||
deviceOrientations: DeviceOrientation[];
|
deviceOrientations: DeviceOrientation[];
|
||||||
arTrackingData: ArTrackingData[];
|
arData: ArTrackingData[];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -52,7 +52,7 @@ export class MetricsTrackerService {
|
||||||
private metricsLog: MetricsLog = {
|
private metricsLog: MetricsLog = {
|
||||||
interactions: [],
|
interactions: [],
|
||||||
deviceOrientations: [],
|
deviceOrientations: [],
|
||||||
arTrackingData: []
|
arData: []
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -185,7 +185,7 @@ export class MetricsTrackerService {
|
||||||
cameraOrbit: orbit ? { theta: orbit.theta, phi: orbit.phi, radius: orbit.radius } : null,
|
cameraOrbit: orbit ? { theta: orbit.theta, phi: orbit.phi, radius: orbit.radius } : null,
|
||||||
cameraTarget: target ? { x: target.x, y: target.y, z: target.z } : null,
|
cameraTarget: target ? { x: target.x, y: target.y, z: target.z } : null,
|
||||||
};
|
};
|
||||||
this.metricsLog.arTrackingData.push(arData);
|
this.metricsLog.arData.push(arData);
|
||||||
|
|
||||||
|
|
||||||
if (this.lastDeviceOrientation) {
|
if (this.lastDeviceOrientation) {
|
||||||
|
|
@ -230,7 +230,7 @@ export class MetricsTrackerService {
|
||||||
|
|
||||||
|
|
||||||
public resetMetrics(): void {
|
public resetMetrics(): void {
|
||||||
this.metricsLog = { interactions: [], deviceOrientations: [], arTrackingData: [] };
|
this.metricsLog = { interactions: [], deviceOrientations: [], arData: [] };
|
||||||
}
|
}
|
||||||
|
|
||||||
private quaternionToEuler(x: number, y: number, z: number, w: number): { pitch: number, yaw: number, roll: number } {
|
private quaternionToEuler(x: number, y: number, z: number, w: number): { pitch: number, yaw: number, roll: number } {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue