@tdurtschi/bug
Version:
Bug is a simulation that models a weevil walking around in an HTML canvas.
12 lines (11 loc) • 358 B
TypeScript
import { ITreeStruct } from "../ITreeStruct";
export default class TreeBuilder {
private static defaultNode;
private leftBranch;
private rightBranch;
private nodeVector;
left: (left: Partial<ITreeStruct>) => this;
right: (right: Partial<ITreeStruct>) => this;
node: (x: number, y: number) => this;
build: () => ITreeStruct;
}