We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 54e7346 commit edb1bf6Copy full SHA for edb1bf6
test/utils.test.js
@@ -100,3 +100,14 @@ test('Get Width', () => {
100
test('Vertex Angles', () => {
101
expect(BuildingShapeUtils.vertexAngle(rightTriangle)).toStrictEqual([Math.PI / 2, Math.PI / 4, Math.PI / 4]);
102
});
103
+
104
+const rightTriangle2 = new Shape();
105
+rightTriangle.moveTo(1, 1);
106
+rightTriangle.lineTo(-1, 1);
107
+rightTriangle.lineTo(1, -1);
108
+test('Vertex Angles counterclockwise', () => {
109
+ expect(BuildingShapeUtils.vertexAngle(rightTriangle2)).toStrictEqual([-Math.PI / 2, -Math.PI / 4, -Math.PI / 4]);
110
+});
111
+// test surrounds
112
113
+// test calcRadius
0 commit comments