Skip to content

Type Alias: Segment ​

ts
type Segment = {
  from: number;
  intercept: number;
  slope: number;
  to: number;
};

Defined in: pwl.ts:26

The line slope·σ + intercept on σ in [from, to].

Properties ​

from ​

ts
readonly from: number;

Defined in: pwl.ts:27


intercept ​

ts
readonly intercept: number;

Defined in: pwl.ts:30


slope ​

ts
readonly slope: number;

Defined in: pwl.ts:29


to ​

ts
readonly to: number;

Defined in: pwl.ts:28