UNPKG

@itwin/core-frontend

Version:
46 lines 1.42 kB
/*--------------------------------------------------------------------------------------------- * 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 */ /** @internal */ export class StrokesPrimitivePointList { points; constructor(points = []) { this.points = [...points]; } } /** @internal */ export class StrokesPrimitivePointLists extends Array { constructor(...args) { super(...args); } } /** @internal */ export class StrokesPrimitive { displayParams; isDisjoint; isPlanar; strokes; 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); } } } /** @internal */ export class StrokesPrimitiveList extends Array { constructor(...args) { super(...args); } } //# sourceMappingURL=Strokes.js.map