mirror of
https://github.com/MaddyThorson/StrawberryBF.git
synced 2026-10-06 10:29:23 +08:00
Point/Vector .Perpendicular
This commit is contained in:
1 parent
6a278dc810
commit
ad9acf4fe1
2 files changed
+10
No files matched your search
@@ -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 [ ");
|
||||||
|
|||||||
@@ -27,6 +27,11 @@ namespace Strawberry
|
|||||||
Y = y;
|
Y = y;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public Vector Perpendicular()
|
||||||
|
{
|
||||||
|
return .(-Y, X);
|
||||||
|
}
|
||||||
|
|
||||||
public float Length
|
public float Length
|
||||||
{
|
{
|
||||||
[Inline]
|
[Inline]
|
||||||
|
|||||||
Reference in new issue
Block a user