import {Point} from '../../../math/geometry/point' import {AxisEdge} from './AxisEdge' export class AxisEdgesContainer { edges: Set = new Set() get Edges(): Iterable { return this.edges } // it is not necessarely the upper point but some point above the source UpPoint: Point AddEdge(edge: AxisEdge) { this.UpPoint = edge.TargetPoint /*Assert.assert(!this.edges.has(edge))*/ this.edges.add(edge) } constructor(source: Point) { this.Source = source } Source: Point RemoveAxis(edge: AxisEdge) { /*Assert.assert(this.edges.has(edge))*/ this.edges.delete(edge) } IsEmpty(): boolean { return this.edges.size === 0 } }