1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-08 11:38:21 +02:00

Angle property

This commit is contained in:
Brian Fiete 2020-04-16 00:33:42 -07:00
parent e7540ddef0
commit 6434676134

View file

@ -25,6 +25,14 @@ namespace Beefy.geom
}
}
public float Angle
{
get
{
return Math.Atan2(mY, mX);
}
}
public this(float x, float y)
{
mX = x;