コード例 #1
0
ファイル: coords64.go プロジェクト: jesseeichar/gotopo
func (this *coords64) Add(newValue geom.Point) {
	if newValue.NumDim() != this.dimensions {
		panic(fmt.Sprintf("Number of dimensions in coordinate(%d) do not match those in this coords object (%d)",
			newValue.NumDim(), this.dimensions))
	}
	this.data = append(this.data, newValue.ToArray()...)
}
コード例 #2
0
ファイル: coords64.go プロジェクト: jesseeichar/gotopo
func (this *coords64) Insert(idx uint32, newValue geom.Point) {
	this.InsertRaw(idx, newValue.ToArray())
}