Mercurial > gemma
changeset 730:4c05bdbf8e4b
Renamed scale in Vertex to uppercase to make it public.
author | Sascha L. Teichmann <teichmann@intevation.de> |
---|---|
date | Sat, 22 Sep 2018 22:23:21 +0200 |
parents | b0bd242ff821 |
children | 4d6329afc1ea |
files | pkg/octree/vertex.go |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/pkg/octree/vertex.go Sat Sep 22 22:14:31 2018 +0200 +++ b/pkg/octree/vertex.go Sat Sep 22 22:23:21 2018 +0200 @@ -69,7 +69,7 @@ } } -func (v Vertex) scale(s float64) Vertex { +func (v Vertex) Scale(s float64) Vertex { return Vertex{ s * v.X, s * v.Y, @@ -100,7 +100,7 @@ } func (l Line) Eval(t float64) Vertex { - return l[0].scale(t).Add(l[1]) + return l[0].Scale(t).Add(l[1]) } func (l Line) IntersectHorizontal(h float64) Vertex {