"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.OtGhGetBound = void 0;
const variance_1 = require("@ot-builder/variance");
const ot_glyph_1 = require("../ot-glyph");
class OtGhGetBound {
    constructor() {
        this.bb = new ot_glyph_1.OtGlyph.Stat.BoundingBoxBuilder();
    }
    getResult() {
        return this.bb.getResult();
    }
    beginContour() { }
    endContour() { }
    addControlKnot(knot) {
        this.bb.addPoint(variance_1.OtVar.Ops.originOf(knot.x), variance_1.OtVar.Ops.originOf(knot.y));
    }
}
exports.OtGhGetBound = OtGhGetBound;
//# sourceMappingURL=get-bound.js.map