Skip to content

Commit

Permalink
fix reflection
Browse files Browse the repository at this point in the history
  • Loading branch information
AronT-TLV committed Sep 19, 2024
1 parent a4321e6 commit 439cdbf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/linear_algebra.jl
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,10 @@ end

"""
function reflection(v::Vector, w::Vector) -> Vector
The projection P from 'w' onto 'v' is the midpoint of the reflection of w around v
The projection P from 'v' to the line along [1,2] is the midpoint of the reflection of w around v
"""
function reflection(v::Vector, w::Vector)
P = orthproj(v,w)
function reflection(v::Vector)
P = orthproj([1,2],v)
(2 * P ) - X
end

Expand Down

0 comments on commit 439cdbf

Please sign in to comment.