"use strict";
/*---------------------------------------------------------------------------------------------
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
* See LICENSE.md in the project root for license terms and full copyright notice.
*--------------------------------------------------------------------------------------------*/
/** @packageDocumentation
 * @module Rendering
 */
Object.defineProperty(exports, "__esModule", { value: true });
exports.StrokesPrimitiveList = exports.StrokesPrimitive = exports.StrokesPrimitivePointLists = exports.StrokesPrimitivePointList = void 0;
/** @internal */
class StrokesPrimitivePointList {
    constructor(points = []) { this.points = [...points]; }
}
exports.StrokesPrimitivePointList = StrokesPrimitivePointList;
/** @internal */
class StrokesPrimitivePointLists extends Array {
    constructor(...args) {
        super(...args);
    }
}
exports.StrokesPrimitivePointLists = StrokesPrimitivePointLists;
/** @internal */
class StrokesPrimitive {
    static create(params, isDisjoint, isPlanar) {
        return new StrokesPrimitive(params, isDisjoint, isPlanar);
    }
    constructor(params, isDisjoint, isPlanar) {
        this.displayParams = params;
        this.strokes = new StrokesPrimitivePointLists();
        this.isDisjoint = isDisjoint;
        this.isPlanar = isPlanar;
    }
    transform(trans) {
        for (const strk of this.strokes) {
            trans.multiplyPoint3dArrayInPlace(strk.points);
        }
    }
}
exports.StrokesPrimitive = StrokesPrimitive;
/** @internal */
class StrokesPrimitiveList extends Array {
    constructor(...args) {
        super(...args);
    }
}
exports.StrokesPrimitiveList = StrokesPrimitiveList;
//# sourceMappingURL=Strokes.js.map