TModLoader v1.4.4.9
TModLoader source code documentation
Loading...
Searching...
No Matches

◆ DoesFitInCone()

static bool Terraria.Utils.DoesFitInCone ( Vector2 point,
Vector2 coneCenter,
float coneLength,
float coneRotation,
float maximumAngle )
inlinestatic

Definition at line 1439 of file Utils.cs.

1440 {
1441 //IL_0000: Unknown result type (might be due to invalid IL or missing references)
1442 //IL_0001: Unknown result type (might be due to invalid IL or missing references)
1443 //IL_0002: Unknown result type (might be due to invalid IL or missing references)
1444 //IL_0007: Unknown result type (might be due to invalid IL or missing references)
1445 //IL_0008: Unknown result type (might be due to invalid IL or missing references)
1446 //IL_0013: Unknown result type (might be due to invalid IL or missing references)
1447 //IL_0019: Unknown result type (might be due to invalid IL or missing references)
1448 //IL_001a: Unknown result type (might be due to invalid IL or missing references)
1449 Vector2 spinningpoint = point - coneCenter;
1450 float num = spinningpoint.RotatedBy(0f - coneRotation).ToRotation();
1452 {
1453 return false;
1454 }
1455 return ((Vector2)(ref spinningpoint)).Length() < coneLength;
1456 }

Referenced by Terraria.Utils.IntersectsConeSlowMoreAccurate().

+ Here is the caller graph for this function: