Skip to content

Commit

Permalink
rename basics
Browse files Browse the repository at this point in the history
  • Loading branch information
AronT-TLV committed Sep 21, 2024
1 parent 439cdbf commit 75f4520
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/linear_algebra.jl → src/linear_algebra_basic.jl
Original file line number Diff line number Diff line change
Expand Up @@ -81,11 +81,11 @@ end

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

"""
Expand Down Expand Up @@ -279,3 +279,4 @@ function intersection_2_implicit_lines(a₁::Number, b₁::Number, c₁::Number,
# solve the system using left division of the matrix by the vector
A\b
end

0 comments on commit 75f4520

Please sign in to comment.