 		return "("+@translateX+", "+@translateY+", "+@rotateDegs+")"
 
 # an extended Transform with a pointer to another connection
-class Connection extends Transform
+class ConnectedTransform extends Transform
 	constructor: (@translateX, @translateY, @rotateDegs) ->
 		super @translateX, @translateY, @rotateDegs
 		@connected = null

		@radius = options.radius ? 1
		@exit = options.exit ? 'B'
		@flip = options.flip ? 1
		@connections = { 'A' : new Connection(0, 0, -180) }
		@section = null

	setSection: (section) ->


	_sectionStartingIndex: (section) ->
		result=0
		for idx in [0...@_sections.indexOf(section)]
			do (idx) =>
				result+=@_sections[idx]._pieces.length
		result
