InvSqrt2
: readonly float |
Signature
readonly float InvSqrt2 |
Sqrt2
: readonly float |
Signature
readonly float Sqrt2 |
GetAnchorName
(
anchorData
)
|
Gets the name of an anchor based on its semantic classification.
Signature
static string GetAnchorName(Data.AnchorData anchorData) Parameters anchorData: Data.AnchorData
The Data.AnchorData object representing the anchor.
Returns string
The name of the anchor, or "UNDEFINED_ANCHOR" if no semantic classification is available.
|
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.
|