|
|
|
@ -208,6 +208,13 @@ test('圆弧合并', () =>
|
|
|
|
|
expect(arc.StartAngle).toMatchSnapshot();
|
|
|
|
|
expect(arc.EndAngle).toMatchSnapshot();
|
|
|
|
|
|
|
|
|
|
//终点在里面,起点在外面
|
|
|
|
|
arc = new Arc(new Vector3(), 1, 0, 1).Reverse();
|
|
|
|
|
arc2 = new Arc(new Vector3(), 1, 5, 0.5).Reverse();
|
|
|
|
|
expect(arc.Join(arc2)).toBeTruthy();
|
|
|
|
|
expect(arc.StartAngle).toMatchSnapshot();
|
|
|
|
|
expect(arc.EndAngle).toMatchSnapshot();
|
|
|
|
|
|
|
|
|
|
//包含.
|
|
|
|
|
arc = new Arc(new Vector3(), 1, 0, 1).Reverse();
|
|
|
|
|
arc2 = new Arc(new Vector3(), 1, 5, 3);
|
|
|
|
|