Skip to content

Commit

Permalink
Fix docs of lengthof & distance
Browse files Browse the repository at this point in the history
  • Loading branch information
singularitti committed Oct 8, 2023
1 parent 8869cf8 commit 4bd8277
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/metric.jl
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,14 @@ end
"""
lengthof(𝐚::ReducedCoordinates, g::MetricTensor)
Get the length of coordinates `𝐚`.
Get the length of an atomic coordinates.
"""
lengthof(𝐚::ReducedCoordinates, g::MetricTensor) = sqrt(dot(𝐚, g, 𝐚))

"""
distance(𝐚::ReducedCoordinates, g::MetricTensor, 𝐛::ReducedCoordinates)
distance(𝐚::ReducedCoordinates, 𝐛::ReducedCoordinates, g::MetricTensor)
Get the distance between two coordinates using a `MetricTensor`.
Get the distance between two atomic coordinates.
"""
distance(𝐚::ReducedCoordinates, 𝐛::ReducedCoordinates, g::MetricTensor) = lengthof(𝐚 - 𝐛, g)

Expand Down

0 comments on commit 4bd8277

Please sign in to comment.