mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 04:22:20 +02:00
Angle property
This commit is contained in:
parent
e7540ddef0
commit
6434676134
1 changed files with 8 additions and 0 deletions
|
@ -25,6 +25,14 @@ namespace Beefy.geom
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public float Angle
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return Math.Atan2(mY, mX);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public this(float x, float y)
|
public this(float x, float y)
|
||||||
{
|
{
|
||||||
mX = x;
|
mX = x;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue