Point/Vector .Perpendicular

This commit is contained in:
Matt Thorson 2020-05-18 15:25:53 -07:00
parent 6a278dc810
commit ad9acf4fe1
2 changed files with 10 additions and 0 deletions

View File

@ -33,6 +33,11 @@ namespace Strawberry
} }
public Point Perpendicular()
{
return .(-Y, X);
}
public override void ToString(String strBuffer) public override void ToString(String strBuffer)
{ {
strBuffer.Set("Point [ "); strBuffer.Set("Point [ ");

View File

@ -27,6 +27,11 @@ namespace Strawberry
Y = y; Y = y;
} }
public Vector Perpendicular()
{
return .(-Y, X);
}
public float Length public float Length
{ {
[Inline] [Inline]