Table of Contents

Struct DistanceBand

Namespace
Typhon.Engine
Assembly
Typhon.Engine.dll

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

Every int

The period, in ticks: 1, 2, 4 or 8.

Beyond double

The inner boundary, a fraction of the radius.

Tolerance double

The 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

double

Every

The period, in ticks: 1, 2, 4 or 8.

public int Every { get; init; }

Property Value

int

Tolerance

The motion tolerance's multiplier, 1 (the archetype's own) to MaxTolerance.

public double Tolerance { get; init; }

Property Value

double

Methods

Deconstruct(out int, out double, out double)

public void Deconstruct(out int Every, out double Beyond, out double Tolerance)

Parameters

Every int
Beyond double
Tolerance double

Equals(object)

public override bool Equals(object obj)

Parameters

obj object

Returns

bool

Equals(DistanceBand)

public bool Equals(DistanceBand other)

Parameters

other DistanceBand

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

ToString()

public override string ToString()

Returns

string

Operators

operator ==(DistanceBand, DistanceBand)

public static bool operator ==(DistanceBand left, DistanceBand right)

Parameters

left DistanceBand
right DistanceBand

Returns

bool

operator !=(DistanceBand, DistanceBand)

public static bool operator !=(DistanceBand left, DistanceBand right)

Parameters

left DistanceBand
right DistanceBand

Returns

bool