mirror of
https://github.com/MaddyThorson/StrawberryBF.git
synced 2025-04-19 04:36:05 +08:00
Point/Vector .Perpendicular
This commit is contained in:
parent
6a278dc810
commit
ad9acf4fe1
@ -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]
|
||||||
|
Loading…
Reference in New Issue
Block a user