comparison pkg/octree/vertex.go @ 792:ce23a4192788

Removed dead code.
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Thu, 27 Sep 2018 09:55:25 +0200
parents d43e61044ad8
children bd5f38eb6153
comparison
equal deleted inserted replaced
791:8d96204a786a 792:ce23a4192788
2 2
3 import ( 3 import (
4 "bytes" 4 "bytes"
5 "encoding/binary" 5 "encoding/binary"
6 "io" 6 "io"
7 "log"
8 "math" 7 "math"
9 "sort" 8 "sort"
10 ) 9 )
11 10
12 type ( 11 type (
37 } 36 }
38 ) 37 )
39 38
40 const ( 39 const (
41 wkbNDR byte = 1 40 wkbNDR byte = 1
42 wkbPointZ uint32 = 1000 + 1
43 wkbLineStringZ uint32 = 1000 + 2 41 wkbLineStringZ uint32 = 1000 + 2
44 wkbMultiLineStringZ uint32 = 1000 + 5 42 wkbMultiLineStringZ uint32 = 1000 + 5
45 ) 43 )
46 44
47 func (v *Vertex) Minimize(w Vertex) { 45 func (v *Vertex) Minimize(w Vertex) {
165 points = append(points, v) 163 points = append(points, v)
166 } 164 }
167 } 165 }
168 166
169 return points 167 return points
170 }
171
172 func (t *Triangle) IntersectVertical(x1, y1, x2, y2 float64) LineStringZ {
173 // TODO: Implement me!
174 log.Println("Triangle.IntersectVertical is not implemented, yet!")
175 return nil
176 } 168 }
177 169
178 func linearScale(x1, y1, x2, y2 float64) func(Vertex) float64 { 170 func linearScale(x1, y1, x2, y2 float64) func(Vertex) float64 {
179 dx := x2 - x1 171 dx := x2 - x1
180 dy := y2 - y1 172 dy := y2 - y1