Chemistry · class

ContactSet

Which parcels are touching, this tick.

Explained in Chemistry.

class ContactSet
import { ContactSet } from '@driftengine/chemistry';

In depth

Refilled by the caller each tick rather than held, the same shape RadiativeSources takes and for the same reason: contact is a property of the world's arrangement, which this package does not know. In practice it is fed from Track B's contact event buffer, which already reports pairs by feature id — and feeding it is the whole of what a consumer does to make a pan heat a steak.

Accessors

NameTypeDescription
countgetnumber

Methods

clear

clear(): void

add

add(a: number, b: number, area: number): void
ParameterTypeDescription
anumber
bnumber
areanumberm² of shared surface, which is what sets how fast heat crosses.

firstOf

firstOf(contact: number): number
ParameterTypeDescription
contactnumber

secondOf

secondOf(contact: number): number
ParameterTypeDescription
contactnumber

areaOf

areaOf(contact: number): number
ParameterTypeDescription
contactnumber