Class ClusterSpatialQueryExtensions
Construction helpers for ClusterSpatialQuery<TArch>(DatabaseEngine). Exposed on DatabaseEngine so callers can write
dbe.ClusterSpatialQuery{TArch}().AABB(...).
public static class ClusterSpatialQueryExtensions
- Inheritance
-
ClusterSpatialQueryExtensions
- Inherited Members
Methods
ClusterSpatialQuery<TArch>(DatabaseEngine)
Create a per-cell cluster AABB query for the given archetype.
public static ClusterSpatialQuery<TArch> ClusterSpatialQuery<TArch>(this DatabaseEngine engine) where TArch : Archetype<TArch>, new()
Parameters
engineDatabaseEngineThe database engine.
Returns
- ClusterSpatialQuery<TArch>
A zero-allocation query handle.
Type Parameters
TArchThe archetype type.
Exceptions
- InvalidOperationException
Thrown when the archetype is not cluster-eligible or has no spatial component.