InvSqrt2
: readonly float |
Signature
readonly float InvSqrt2 |
Sqrt2
: readonly float |
Signature
readonly float Sqrt2 |
GetPrefabBounds
(
prefab
)
|
Retrieves the bounds of a prefab, calculating them if not already cached.
Signature
static ? Bounds GetPrefabBounds(GameObject prefab) Parameters prefab: GameObjectÂ
The prefab GameObject to calculate bounds for.
Returns ? BoundsÂ
The bounds of the prefab, or null if no Renderer is found.
|
IsPositionInPolygon
(
position
, polygon
)
|
Checks if a given position is inside a polygon defined by a list of vertices.
Signature
static bool IsPositionInPolygon(Vector2 position, List< Vector2 > polygon) Parameters position: Vector2Â
The position to check.
polygon: List< Vector2 >Â
The list of vertices defining the polygon.
Returns boolÂ
True if the position is inside the polygon, false otherwise.
|
SequenceEqual< T >
(
list1
, list2
)
|
Compares two lists for equality, checking if they contain the same elements in the same order.
This method replaces the LINQ dependency.
Signature
static bool SequenceEqual< T >(this List< T > list1, List< T > list2) Parameters list1: this List< T >Â
The first list to compare.
list2: List< T >Â
The second list to compare.
Returns boolÂ
True if the lists are equal, false otherwise.
|