Terraria
v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
◆
IntersectsConeSlowMoreAccurate()
static
bool
Terraria.Utils.IntersectsConeSlowMoreAccurate
(
this
Rectangle
targetRect
,
Vector2
coneCenter
,
float
coneLength
,
float
coneRotation
,
float
maximumAngle
)
inline
static
Definition at line
1084
of file
Utils.cs
.
1085
{
1086
Vector2
point =
coneCenter
+
coneRotation
.ToRotationVector2() *
coneLength
;
1087
if
(
DoesFitInCone
(targetRect.ClosestPointInRect(point),
coneCenter
,
coneLength
,
coneRotation
,
maximumAngle
))
1088
{
1089
return
true
;
1090
}
1091
if
(
DoesFitInCone
(targetRect.TopLeft(),
coneCenter
,
coneLength
,
coneRotation
,
maximumAngle
))
1092
{
1093
return
true
;
1094
}
1095
if
(
DoesFitInCone
(targetRect.TopRight(),
coneCenter
,
coneLength
,
coneRotation
,
maximumAngle
))
1096
{
1097
return
true
;
1098
}
1099
if
(
DoesFitInCone
(targetRect.BottomLeft(),
coneCenter
,
coneLength
,
coneRotation
,
maximumAngle
))
1100
{
1101
return
true
;
1102
}
1103
if
(
DoesFitInCone
(targetRect.BottomRight(),
coneCenter
,
coneLength
,
coneRotation
,
maximumAngle
))
1104
{
1105
return
true
;
1106
}
1107
return
false
;
1108
}
System.Collections.Generic.Dictionary
Definition
Dictionary.cs:14
Terraria.Utils.DoesFitInCone
static bool DoesFitInCone(Vector2 point, Vector2 coneCenter, float coneLength, float coneRotation, float maximumAngle)
Definition
Utils.cs:1110
Microsoft.Xna.Framework.Vector2
Definition
Vector2.cs:12
References
Terraria.Utils.DoesFitInCone()
.
Terraria
Utils
Generated by
1.10.0