Skip to content

Commit

Permalink
Delete some comments
Browse files Browse the repository at this point in the history
  • Loading branch information
baku89 committed Oct 14, 2023
1 parent 274d3f4 commit 5cdcb29
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions src/components/CameraTrajectoryVisualizer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ const position = computed(() => {
const euler = computed(() => {
const q = new THREE.Quaternion(...tracker.rotation)
const euler = new THREE.Euler().setFromQuaternion(q)
const [x, y, z] = euler.toArray().slice(0, 3) as any
return {x, y, z}
Expand Down Expand Up @@ -80,23 +79,6 @@ const origin = appConfig.ref<Mat4>('tracker.origin', mat4.ident)
const cameraAxisY = appConfig.ref<Vec3>('tracker.yAxis', vec3.unitY)
const cameraAxisX = appConfig.ref<Vec3>('tracker.xAxis', vec3.unitX)
// const calibrationMatrix = computed(() => {
// const zAxis = vec3.cross(cameraAxisX.value, cameraAxisY.value)
// const m = mat4.of(
// ...cameraAxisX.value,
// 0,
// ...cameraAxisY.value,
// 0,
// ...zAxis,
// 0,
// ...origin.value,
// 1
// )
// return mat4.invert(m) ?? mat4.identity
// })
function setOrigin() {
origin.value = matrix.value
}
Expand All @@ -113,7 +95,6 @@ function setPan() {
originInv[14] = 0
cameraAxisY.value = vec3.transformMat4(up, originInv)
// cameraAxisY.value = up
}
function setTilt() {
Expand Down

0 comments on commit 5cdcb29

Please sign in to comment.