diff --git a/src/lib/turtle/Structure.hx b/src/lib/turtle/Structure.hx index b47f7a6..74756ca 100644 --- a/src/lib/turtle/Structure.hx +++ b/src/lib/turtle/Structure.hx @@ -10,6 +10,10 @@ abstract Structure(Array) from Array { public inline function height():Int { return this.length; } + + public function rotate():Structure { + return [for (i in 0...height()) this[i].rotate()]; + } } abstract Layer(Array>) from Array> {