Reference · Number-puzzle engines
Segmenttype
A line segment in cell units: where one part of a cage's dashed outline runs.
Import it
import type { Segment } from "@johnmorrisdotca/kazu";
Definition
type Segment = {
x1: number;
y1: number;
x2: number;
y2: number;
};
Members
| Name | Type | Description |
|---|---|---|
x1 | number | |
y1 | number | |
x2 | number | |
y2 | number |
Examples
import type { Segment } from "@johnmorrisdotca/kazu";
const value: Segment = {x1:0,y1:0,x2:1,y2:0};
console.log(value);{ x1: 0, y1: 0, x2: 1, y2: 0 }What it prints (run when this page was built)