File tree Expand file tree Collapse file tree 1 file changed +9
-11
lines changed
Expand file tree Collapse file tree 1 file changed +9
-11
lines changed Original file line number Diff line number Diff line change 88#>
99param (
1010# The DeltaX
11- [double ]$DeltaX = $ (Get-Random - Min 0 - Max 100.0 ),
11+ [double ]$DeltaX = $ (Get-Random - Min -100. 0 - Max 100.0 ),
1212# The DeltaY
13- [double ]$DeltaY = $ (Get-Random - Min 0 - Max 100.0 )
13+ [double ]$DeltaY = $ (Get-Random - Min -100. 0 - Max 100.0 )
1414)
1515
16- # If both coordinates are empty, there is no step
17- if ($DeltaX -or $DeltaY ) {
18-
19- $this.Position = $DeltaX , $DeltaY
20- if ($This.IsPenDown ) {
21- $this.Steps.Add (" t $deltaX $deltaY " )
22- } else {
23- $this.Steps.Add (" m $DeltaX $DeltaY " )
24- }
16+ # If both coordinates are empty, we aren't going anywhere.
17+ # But we _might_ want a point to exist.
18+ $this.Position = $DeltaX , $DeltaY
19+ if ($This.IsPenDown ) {
20+ $this.Steps.Add (" t $deltaX $deltaY " )
21+ } else {
22+ $this.Steps.Add (" m $DeltaX $DeltaY " )
2523}
2624
2725return $this
You can’t perform that action at this time.
0 commit comments