We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7fae6d3 commit 76c9c35Copy full SHA for 76c9c35
Types/Turtle/get_Maximum.ps1
@@ -1,12 +1,15 @@
1
<#
2
.SYNOPSIS
3
- Gets the turtle maximum point.
+ Gets the turtle's highest point.
4
.DESCRIPTION
5
- Gets the maximum point reached by the turtle.
+ Gets the maximum point vector visited by the turtle.
6
7
- Keeping track of this as we go is far more efficient than calculating it from the path.
+ This would the highest point that the turtle has been.
8
#>
9
-if ($this.'.Maximum') {
10
- return $this.'.Maximum'
+[OutputType([Numerics.Vector2])]
+param()
11
+if (-not $this.'.Maximum') {
12
+ $this | Add-Member NoteProperty '.Maximum' ([Numerics.Vector2]::new(0,0)) -Force
13
}
-return ([pscustomobject]@{ X = 0; Y = 0 })
14
+
15
+return $this.'.Maximum'
0 commit comments