Skip to content

Commit

Permalink
fix dist -> distance
Browse files Browse the repository at this point in the history
  • Loading branch information
rcoreilly committed May 1, 2024
1 parent 452fae9 commit c5641f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion efuns/gauss.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import (
// using given sigma standard deviation, without normalizing area under gaussian
// (i.e., max value is 1 at dist = 0)
func GaussVecDistNoNorm(a, b math32.Vector2, sigma float32) float32 {
dsq := a.DistToSquared(b)
dsq := a.DistanceToSquared(b)

Check failure on line 19 in efuns/gauss.go

View workflow job for this annotation

GitHub Actions / build

a.DistanceToSquared undefined (type "cogentcore.org/core/math32".Vector2 has no field or method DistanceToSquared)
return math32.FastExp((-0.5 * dsq) / (sigma * sigma))
}

Expand Down

0 comments on commit c5641f5

Please sign in to comment.