|
|
@ -228,7 +228,7 @@ describe('多段线', () =>
|
|
|
|
expect(pl.GetDistAtPoint(new Vector3(5, 0, 0))).toBe(5);
|
|
|
|
expect(pl.GetDistAtPoint(new Vector3(5, 0, 0))).toBe(5);
|
|
|
|
expect(pl.GetDistAtPoint(new Vector3(7.5, 2.5, 0))).toBe(5 + Math.PI / 2 * 2.5);
|
|
|
|
expect(pl.GetDistAtPoint(new Vector3(7.5, 2.5, 0))).toBe(5 + Math.PI / 2 * 2.5);
|
|
|
|
expect(pl.GetDistAtPoint(new Vector3(7.5, 2.5, 0))).toBe(5 + Math.PI / 2 * 2.5);
|
|
|
|
expect(pl.GetDistAtPoint(new Vector3(7.5, 2.5, 0))).toBe(5 + Math.PI / 2 * 2.5);
|
|
|
|
expect(equaln(pl.Length, 20 + 2 * Math.PI * 2.5)).toBeTruthy();
|
|
|
|
expect(pl.Length).toMatchSnapshot();
|
|
|
|
})
|
|
|
|
})
|
|
|
|
test("多段线延伸,不闭合", () =>
|
|
|
|
test("多段线延伸,不闭合", () =>
|
|
|
|
{
|
|
|
|
{
|
|
|
|