Skip to content

Commit

Permalink
Fixed the eye position and look at points.
Browse files Browse the repository at this point in the history
  • Loading branch information
iamazadi committed Nov 7, 2024
1 parent e45e397 commit de339d5
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions models/newsreport/spacetime/fig119sumofangles.jl
Original file line number Diff line number Diff line change
Expand Up @@ -79,11 +79,11 @@ z = 𝕍( 0.0, 0.0, 0.0, 1.0)
zero = 𝕍( 0.0, 0.0, 0.0, 0.0)
B = stack([vec(κv), vec(ωv), vec(zero), vec(zero)])
N = LinearAlgebra.nullspace(B)
a = 𝕍(N[begin:end, 1])
b = 𝕍(N[begin:end, 2])
a = 𝕍( N[begin:end, 1])
b = 𝕍( N[begin:end, 2])

a = 𝕍(LinearAlgebra.normalize(vec(a - κv - ωv)))
b = 𝕍(LinearAlgebra.normalize(vec(b - κv - ωv)))
a = 𝕍( LinearAlgebra.normalize(vec(a - κv - ωv)))
b = 𝕍( LinearAlgebra.normalize(vec(b - κv - ωv)))

v₁ = κv.a
v₂ = ωv.a
Expand All @@ -99,14 +99,14 @@ ê₃ = normalize(e₃)
e₄ = v₄ - dot(ê₁, v₄) * ê₁ - dot(ê₂, v₄) * ê₂ - dot(ê₃, v₄) * ê₃
ê₄ = normalize(e₄)

ê₁ = 𝕍(ê₁)
ê₂ = 𝕍(ê₂)
ê₃ = 𝕍(ê₃)
ê₄ = 𝕍(ê₄)
ê₁ = 𝕍( ê₁)
ê₂ = 𝕍( ê₂)
ê₃ = 𝕍( ê₃)
ê₄ = 𝕍( ê₄)

u = 𝕍(LinearAlgebra.normalize(rand(4)))
v = 𝕍(LinearAlgebra.normalize(rand(4)))
p = 𝕍(LinearAlgebra.normalize(vec(u + v)))
u = 𝕍( LinearAlgebra.normalize(rand(4)))
v = 𝕍( LinearAlgebra.normalize(rand(4)))
p = 𝕍( LinearAlgebra.normalize(vec(u + v)))

arrowsize = Vec3f(0.06, 0.08, 0.1)
linewidth = 0.04
Expand Down

0 comments on commit de339d5

Please sign in to comment.