mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-08 11:38:21 +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)
|
||||
{
|
||||
mX = x;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue