Skip to content

Commit a7100f3

Browse files
feat: Turtle Minimum Vector ( Fixes #276 )
1 parent 8b7d4b3 commit a7100f3

File tree

1 file changed

+14
-3
lines changed

1 file changed

+14
-3
lines changed

Types/Turtle/get_Minimum.ps1

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,15 @@
1-
if ($this.'.Minimum') {
2-
return $this.'.Minimum'
1+
<#
2+
.SYNOPSIS
3+
Gets a Turtle's lowest point
4+
.DESCRIPTION
5+
Gets the minimum vector for this turtle.
6+
7+
This would the lowest point that the turtle has visted.
8+
#>
9+
[OutputType([Numerics.Vector2])]
10+
param()
11+
if (-not $this.'.Minimum') {
12+
$this | Add-Member NoteProperty '.Minimum' ([Numerics.Vector2]::new(0,0)) -Force
313
}
4-
return ([pscustomobject]@{ X = 0; Y = 0 })
14+
15+
return $this.'.Minimum'

0 commit comments

Comments
 (0)