Struct SwiftSpatialHashOptions
- Namespace
- SwiftCollections.Query
- Assembly
- SwiftCollections.dll
Controls neighborhood query behavior for SwiftSpatialHash<TKey, TVolume>.
public readonly struct SwiftSpatialHashOptions : IEquatable<SwiftSpatialHashOptions>
- Implements
- Inherited Members
Constructors
SwiftSpatialHashOptions(int)
Initializes a new instance of the SwiftSpatialHashOptions struct.
public SwiftSpatialHashOptions(int neighborhoodPadding)
Parameters
neighborhoodPaddingintThe number of additional cells to include around neighborhood queries.
Properties
Default
The default options value.
public static SwiftSpatialHashOptions Default { get; }
Property Value
NeighborhoodPadding
Gets the number of extra cells queried beyond the mapped volume range when using neighborhood queries.
public int NeighborhoodPadding { get; }
Property Value
Methods
Equals(SwiftSpatialHashOptions)
public bool Equals(SwiftSpatialHashOptions other)
Parameters
otherSwiftSpatialHashOptions
Returns
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
GetHashCode()
public override int GetHashCode()
Returns
Operators
operator ==(SwiftSpatialHashOptions, SwiftSpatialHashOptions)
Determines whether two SwiftSpatialHashOptions instances are equal.
public static bool operator ==(SwiftSpatialHashOptions left, SwiftSpatialHashOptions right)
Parameters
leftSwiftSpatialHashOptionsrightSwiftSpatialHashOptions
Returns
operator !=(SwiftSpatialHashOptions, SwiftSpatialHashOptions)
Determines whether two SwiftSpatialHashOptions instances are not equal.
public static bool operator !=(SwiftSpatialHashOptions left, SwiftSpatialHashOptions right)
Parameters
leftSwiftSpatialHashOptionsrightSwiftSpatialHashOptions