Skip to content

Commit 7fae6d3

Browse files
StartAutomatingStartAutomating
authored andcommitted
feat: Turtle Minimum Vector ( Fixes #276 )
1 parent a7100f3 commit 7fae6d3

File tree

1 file changed

+14
-3
lines changed

1 file changed

+14
-3
lines changed

Turtle.types.ps1xml

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4778,10 +4778,21 @@ return ([pscustomobject]@{ X = 0; Y = 0 })
47784778
<ScriptProperty>
47794779
<Name>Minimum</Name>
47804780
<GetScriptBlock>
4781-
if ($this.'.Minimum') {
4782-
return $this.'.Minimum'
4781+
&lt;#
4782+
.SYNOPSIS
4783+
Gets a Turtle's lowest point
4784+
.DESCRIPTION
4785+
Gets the minimum vector for this turtle.
4786+
4787+
This would the lowest point that the turtle has visted.
4788+
#&gt;
4789+
[OutputType([Numerics.Vector2])]
4790+
param()
4791+
if (-not $this.'.Minimum') {
4792+
$this | Add-Member NoteProperty '.Minimum' ([Numerics.Vector2]::new(0,0)) -Force
47834793
}
4784-
return ([pscustomobject]@{ X = 0; Y = 0 })
4794+
4795+
return $this.'.Minimum'
47854796
</GetScriptBlock>
47864797
</ScriptProperty>
47874798
<ScriptProperty>

0 commit comments

Comments
 (0)