This repository has been archived on 2023-03-25. You can view files and clone it, but cannot push or open issues or pull requests.
mightyscape-1.1-deprecated/extensions/fablabchemnitz/papercraft/openjscad/node_modules/sylvester/test/plane.test.js

17 lines
436 B
JavaScript

import { expect } from 'chai';
import { Vector, Plane } from '../src';
describe('plane', () => {
it('should create', () => {
const plane = Plane.create([1, 2, 3], [5, 5, 5]);
expect(plane.anchor).to.deep.equal(Vector.create([1, 2, 3]));
});
it('should create with P$', () => {
const A = Plane.create([1, 2, 3], [5, 5, 5]);
const B = Plane.create([1, 2, 3], [5, 5, 5]);
expect(A).to.deep.equal(B);
});
});