Skip to content

Commit fa8c3ab

Browse files
author
James Brundage
committed
feat: Turtle.get_Maximum ( Fixes #10 )
1 parent 9860850 commit fa8c3ab

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

Types/Turtle/get_Maximum.ps1

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<#
2+
.SYNOPSIS
3+
Gets the turtle maximum point.
4+
.DESCRIPTION
5+
Gets the maximum point reached by the turtle.
6+
7+
Keeping track of this as we go is far more efficient than calculating it from the path.
8+
#>
9+
if ($this.'.Maximum') {
10+
return $this.'.Maximum'
11+
}
12+
return ([pscustomobject]@{ X = 0; Y = 0 })

0 commit comments

Comments
 (0)