Class SpatialFieldTypeExtensions
Dimensionality and precision predicates over SpatialFieldType.
public static class SpatialFieldTypeExtensions
- Inheritance
-
SpatialFieldTypeExtensions
- Inherited Members
Remarks
Why these are methods rather than inline comparisons. Nine sites in the engine spelled "is this field 3D?" as
FieldType == AABB3F || FieldType == BSphere3F, which was exactly right while the f64 tiers were rejected at
ConfigureSpatialGrid and became a silent misclassification the moment #914 accepted them: an AABB3D archetype
would have read as 2D, collapsing every query to the grid's flat plane (SpatialGrid.FlatPlaneZ) and answering nothing for entities anywhere
else on Z. That is SQ-01's silent direction, and a predicate that has to be updated in nine places when a tier lands is the mechanism that
produces it.
Methods
Is3D(SpatialFieldType)
True when the field carries a Z extent — the four 3D variants, at either precision.
public static bool Is3D(this SpatialFieldType fieldType)
Parameters
fieldTypeSpatialFieldType
Returns
IsF64(SpatialFieldType)
True when the field stores double-precision coordinates — the four *D variants.
public static bool IsF64(this SpatialFieldType fieldType)
Parameters
fieldTypeSpatialFieldType