"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.Plane = void 0;
var vec_1 = require("./vec");
var decimal_js_1 = __importDefault(require("decimal.js"));
var Plane = /** @class */ (function () {
    function Plane(point, normal) {
        this.normal = new vec_1.Vec(new decimal_js_1.default(0), new decimal_js_1.default(0), new decimal_js_1.default(0));
        this.normal.copy(normal);
        this.w = point.dot(normal).negated();
    }
    return Plane;
}());
exports.Plane = Plane;
