We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Turtle.Horizontal/VerticalLine
1 parent b373046 commit 6f710c5Copy full SHA for 6f710c5
3 files changed
Types/Turtle/Alias.psd1
@@ -18,4 +18,6 @@
18
bk = 'Backward'
19
ArcR = 'ArcRight'
20
ArcL = 'ArcLeft'
21
+ HLineBy = 'HorizontalLine'
22
+ VLineBy = 'VerticalLine'
23
}
Types/Turtle/HorizontalLine.ps1
@@ -0,0 +1,15 @@
1
+<#
2
+.SYNOPSIS
3
+ Draws a horizontal line
4
+.DESCRIPTION
5
+ Draws a horizontal line.
6
+
7
+ The heading will not be changed.
8
+#>
9
+param(
10
+[double]
11
+$Distance
12
+)
13
14
15
+$this.GoTo($this.Position.X + $Distance, $this.Position.Y)
Types/Turtle/VerticalLine.ps1
@@ -0,0 +1,14 @@
+ Draws a vertical line
+ Draws a vertical line.
+$this.GoTo($this.Position.X, $this.Position.Y + $Distance)
0 commit comments