(ap *shape.AP)
| 21 | } |
| 22 | |
| 23 | func NewIterator(ap *shape.AP) *Iterator { |
| 24 | it := &Iterator{} |
| 25 | it.AP = ap |
| 26 | |
| 27 | last := len(ap.Shape) - 1 |
| 28 | track := &it.Track |
| 29 | for i := range ap.Shape { |
| 30 | (*track)[last-i].Track = uint32(ap.Shape[i]) |
| 31 | (*track)[last-i].Shape = uint32(ap.Shape[i]) |
| 32 | (*track)[last-i].Stride = uint32(ap.Stride[i]) |
| 33 | } |
| 34 | |
| 35 | return it |
| 36 | } |
| 37 | |
| 38 | func (it *Iterator) IsDone() bool { |
| 39 | return it.Done |
no outgoing calls