Struct DistanceBand
One distance band: beyond Beyond of the radius, updates every Every ticks (09 § 9) and motion within Tolerance times the archetype's tolerance (#1615).
public readonly struct DistanceBand : IEquatable<DistanceBand>
- Implements
- Inherited Members
Constructors
DistanceBand(int, double, double)
One distance band: beyond Beyond of the radius, updates every Every ticks (09 § 9) and motion within Tolerance times the archetype's tolerance (#1615).
public DistanceBand(int Every, double Beyond, double Tolerance = 1)
Parameters
EveryintThe period, in ticks: 1, 2, 4 or 8.
BeyonddoubleThe inner boundary, a fraction of the radius.
TolerancedoubleThe motion tolerance's multiplier, 1 (the archetype's own) to MaxTolerance.
Properties
Beyond
The inner boundary, a fraction of the radius.
public double Beyond { get; init; }
Property Value
Every
The period, in ticks: 1, 2, 4 or 8.
public int Every { get; init; }
Property Value
Tolerance
The motion tolerance's multiplier, 1 (the archetype's own) to MaxTolerance.
public double Tolerance { get; init; }
Property Value
Methods
Deconstruct(out int, out double, out double)
public void Deconstruct(out int Every, out double Beyond, out double Tolerance)
Parameters
Equals(object)
public override bool Equals(object obj)
Parameters
objobject
Returns
Equals(DistanceBand)
public bool Equals(DistanceBand other)
Parameters
otherDistanceBand
Returns
GetHashCode()
public override int GetHashCode()
Returns
ToString()
public override string ToString()
Returns
Operators
operator ==(DistanceBand, DistanceBand)
public static bool operator ==(DistanceBand left, DistanceBand right)
Parameters
leftDistanceBandrightDistanceBand
Returns
operator !=(DistanceBand, DistanceBand)
public static bool operator !=(DistanceBand left, DistanceBand right)
Parameters
leftDistanceBandrightDistanceBand