@openhps/core
Version:
Open Hybrid Positioning System - Core component
36 lines (34 loc) • 867 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.LineLoop = void 0;
var _Line = require("./Line.js");
/**
* A continuous line. This is nearly the same as {@link Line} the only difference
* is that the last vertex is connected with the first vertex in order to close
* the line to form a loop.
*
* @augments Line
*/
class LineLoop extends _Line.Line {
/**
* Constructs a new line loop.
*
* @param {BufferGeometry} [geometry] - The line geometry.
* @param {Material|Array<Material>} [material] - The line material.
*/
constructor(geometry, material) {
super(geometry, material);
/**
* This flag can be used for type testing.
*
* @type {boolean}
* @readonly
* @default true
*/
this.isLineLoop = true;
this.type = 'LineLoop';
}
}
exports.LineLoop = LineLoop;