Skip to content

Commit

Permalink
Formatting fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
srimanachanta committed Oct 19, 2023
1 parent b4a5816 commit 04bd846
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions photon-client/src/components/settings/ApriltagControlCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { useSettingsStore } from "@/stores/settings/GeneralSettingsStore";
import { Euler, Quaternion as ThreeQuat } from "three";
import type { Quaternion } from "@/types/PhotonTrackingTypes";
const quaternionToEuler = (rot_quat: Quaternion): {x: number, y: number, z: number} => {
const quaternionToEuler = (rot_quat: Quaternion): { x: number; y: number; z: number } => {
const quat = new ThreeQuat(rot_quat.X, rot_quat.Y, rot_quat.Z, rot_quat.W);
const euler = new Euler().setFromQuaternion(quat, "ZYX");
Expand Down Expand Up @@ -42,10 +42,7 @@ const quaternionToEuler = (rot_quat: Quaternion): {x: number, y: number, z: numb
<td v-for="(val, idx) in Object.values(tag.pose.translation)" :key="idx">
{{ val.toFixed(2) }}
</td>
<td
v-for="(val, idx) in Object.values(quaternionToEuler(tag.pose.rotation.quaternion))"
:key="idx"
>
<td v-for="(val, idx) in Object.values(quaternionToEuler(tag.pose.rotation.quaternion))" :key="idx">
{{ val.toFixed(2) }}
</td>
</tr>
Expand Down

0 comments on commit 04bd846

Please sign in to comment.