Types/Turtle/ArcLeft.ps1
<# .SYNOPSIS Arcs the turtle to the left .DESCRIPTION Arcs the turtle to the left (counter-clockwise) a number of degrees. For each degree, the turtle will move forward and rotate. .NOTES The amount moved forward will be the portion of the circumference. #> param( # The radius of a the circle, were it to complete the arc. [double] $Radius = 10, # The angle of the arc [double] $Angle = 60 ) # Rather than duplicate logic, we will simply reverse the angle $angle *= -1 # and arc to the "right". return $this.ArcRight($Radius, $Angle) |