import VectorType from '../enum/VectorType.js' import Geometry from './Geometry.js' export default class Wall extends Geometry { constructor(pointId1, pointId2, vectorId, floor) { super() this.start = pointId1 this.end = pointId2 this.floor = floor?floor:0 this.color = 'rgba(0,0,0,1)'; this.geoType = VectorType.Wall this.setId(vectorId) } getPointId(dir) { if (dir == 'start') { return this.start } else { return this.end } } getOtherPointId(pointId) { if (this.start == pointId) { return this.end } else if (this.end == pointId) { return this.start } else { return null } } setColor(color) { this.color = color } }