func LineStripToSeg(pts ...*Point) []*Point {
	// Initialize the array
	ps := make([]*Point, 2*len(pts))
	// First and last element would be equal to the first element
	// Found experimentally
	ps[0] = pts[0]
	ps[len(ps)-1] = pts[len(pts)-1]
	for i := 1; i < len(pts); i++ {
		// One object of pts slice maps to two objects in
		// ps array
		ps[2*i-1], ps[2*i] = pts[i], pts[i]
	}
	return ps
}
// Converts a given line Strip to line segments
Converts a given line Strip to line segments
// Converts a given line Strip to line segments
func LineStripToSeg(pts ...*Point) []*Point {
	ps := make([]*Point, 2*len(pts))
	ps[0] = pts[0]
	ps[len(ps)-1] = pts[len(pts)-1]
	for i := 1; i < len(pts); i++ {
		ps[2*i-1], ps[2*i] = pts[i], pts[i]
	}
	return ps
}
func LineStripToSeg ( pts ... * Point ) [ ] * Point { ps := make ( [ ] * Point , 2 * len ( pts ) ) ps [ 0 ] = pts [ 0 ] ps [ len ( ps ) - 1 ] = pts [ len ( pts ) - 1 ] for i := 1 ; i < len ( pts ) ; i ++ { ps [ 2 * i - 1 ] , ps [ 2 * i ] = pts [ i ] , pts [ i ] } return ps }
Converts a given line Strip to line segments
Converts a given line Strip to line segments
// Initialize the array // First and last element would be equal to the first element // Found experimentally // One object of pts slice maps to two objects in // ps array