mirror of https://gitee.com/cf-fz/WebCAD.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
317 lines
4.8 KiB
317 lines
4.8 KiB
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
exports[`完整椭圆 GetClosestPointTo 1`] = `
|
|
Vector3 {
|
|
"x": 161.75177046648375,
|
|
"y": 76.24839906616579,
|
|
"z": 0,
|
|
}
|
|
`;
|
|
|
|
exports[`完整椭圆 GetClosestPointTo 2`] = `
|
|
Vector3 {
|
|
"x": -133.46958799601072,
|
|
"y": -84.55612959938519,
|
|
"z": 0,
|
|
}
|
|
`;
|
|
|
|
exports[`完整椭圆 offset 1`] = `
|
|
Array [
|
|
Vector3 {
|
|
"x": 250,
|
|
"y": 0,
|
|
"z": 0,
|
|
},
|
|
Vector3 {
|
|
"x": -250,
|
|
"y": 0,
|
|
"z": 0,
|
|
},
|
|
Vector3 {
|
|
"x": 0,
|
|
"y": 100,
|
|
"z": 0,
|
|
},
|
|
Vector3 {
|
|
"x": 0,
|
|
"y": -100,
|
|
"z": 0,
|
|
},
|
|
Vector3 {
|
|
"x": 250,
|
|
"y": 0,
|
|
"z": 0,
|
|
},
|
|
Vector3 {
|
|
"x": 0,
|
|
"y": 0,
|
|
"z": 0,
|
|
},
|
|
]
|
|
`;
|
|
|
|
exports[`完整椭圆 offset 2`] = `
|
|
Array [
|
|
Vector3 {
|
|
"x": 200,
|
|
"y": 0,
|
|
"z": 0,
|
|
},
|
|
Vector3 {
|
|
"x": -200,
|
|
"y": 0,
|
|
"z": 0,
|
|
},
|
|
Vector3 {
|
|
"x": 0,
|
|
"y": 50,
|
|
"z": 0,
|
|
},
|
|
Vector3 {
|
|
"x": 0,
|
|
"y": -50,
|
|
"z": 0,
|
|
},
|
|
Vector3 {
|
|
"x": 200,
|
|
"y": 0,
|
|
"z": 0,
|
|
},
|
|
Vector3 {
|
|
"x": 0,
|
|
"y": 0,
|
|
"z": 0,
|
|
},
|
|
]
|
|
`;
|
|
|
|
exports[`完整椭圆 offset 3`] = `
|
|
Array [
|
|
Vector3 {
|
|
"x": 450,
|
|
"y": 0,
|
|
"z": 0,
|
|
},
|
|
Vector3 {
|
|
"x": -450,
|
|
"y": 0,
|
|
"z": 0,
|
|
},
|
|
Vector3 {
|
|
"x": 0,
|
|
"y": 300,
|
|
"z": 0,
|
|
},
|
|
Vector3 {
|
|
"x": 0,
|
|
"y": -300,
|
|
"z": 0,
|
|
},
|
|
Vector3 {
|
|
"x": 450,
|
|
"y": 0,
|
|
"z": 0,
|
|
},
|
|
Vector3 {
|
|
"x": 0,
|
|
"y": 0,
|
|
"z": 0,
|
|
},
|
|
]
|
|
`;
|
|
|
|
exports[`完整椭圆 几何数据 1`] = `1150.6559640322623`;
|
|
|
|
exports[`完整椭圆 几何数据 2`] = `78539.81633974482`;
|
|
|
|
exports[`非完整椭圆 GetParamAtDist 1`] = `242.30725311615984`;
|
|
|
|
exports[`非完整椭圆 GetParamAtDist 2`] = `605.7681327903996`;
|
|
|
|
exports[`非完整椭圆 GetParamAtDist 3`] = `969.2290124646394`;
|
|
|
|
exports[`非完整椭圆 GetPointAtParam 1`] = `
|
|
Vector3 {
|
|
"x": -128.24678398779253,
|
|
"y": 479.9479365060514,
|
|
"z": 0,
|
|
}
|
|
`;
|
|
|
|
exports[`非完整椭圆 GetPointAtParam 2`] = `
|
|
Vector3 {
|
|
"x": 239.42920866477306,
|
|
"y": 323.0232500594477,
|
|
"z": 0,
|
|
}
|
|
`;
|
|
|
|
exports[`非完整椭圆 offset 1`] = `
|
|
Array [
|
|
Vector3 {
|
|
"x": 350.2058941499969,
|
|
"y": 373.22534255869425,
|
|
"z": 0,
|
|
},
|
|
Vector3 {
|
|
"x": -290.9818601387027,
|
|
"y": 910.1549254183373,
|
|
"z": 0,
|
|
},
|
|
Vector3 {
|
|
"x": 174.41678315228742,
|
|
"y": 814.612330454892,
|
|
"z": 0,
|
|
},
|
|
Vector3 {
|
|
"x": -115.19274914099324,
|
|
"y": 468.7679375221395,
|
|
"z": 0,
|
|
},
|
|
Vector3 {
|
|
"x": -298.4690575735684,
|
|
"y": 706.7486518071757,
|
|
"z": 0,
|
|
},
|
|
Vector3 {
|
|
"x": 245.79986047889065,
|
|
"y": 746.5732067866242,
|
|
"z": 0,
|
|
},
|
|
Vector3 {
|
|
"x": 29.61201700564709,
|
|
"y": 641.6901339885158,
|
|
"z": 0,
|
|
},
|
|
]
|
|
`;
|
|
|
|
exports[`非完整椭圆 offset 2`] = `
|
|
Array [
|
|
Vector3 {
|
|
"x": 311.87157824105714,
|
|
"y": 405.3264363686194,
|
|
"z": 0,
|
|
},
|
|
Vector3 {
|
|
"x": -252.64754422976296,
|
|
"y": 878.0538316084121,
|
|
"z": 0,
|
|
},
|
|
Vector3 {
|
|
"x": 142.3156893423623,
|
|
"y": 776.2780145459523,
|
|
"z": 0,
|
|
},
|
|
Vector3 {
|
|
"x": -83.09165533106811,
|
|
"y": 507.10225343107925,
|
|
"z": 0,
|
|
},
|
|
Vector3 {
|
|
"x": -248.70057555417316,
|
|
"y": 711.5547102218358,
|
|
"z": 0,
|
|
},
|
|
Vector3 {
|
|
"x": 205.57861428580685,
|
|
"y": 716.8704905021605,
|
|
"z": 0,
|
|
},
|
|
Vector3 {
|
|
"x": 29.61201700564709,
|
|
"y": 641.6901339885158,
|
|
"z": 0,
|
|
},
|
|
]
|
|
`;
|
|
|
|
exports[`非完整椭圆 offset 3`] = `
|
|
Array [
|
|
Vector3 {
|
|
"x": 273.5372623321175,
|
|
"y": 437.42753017854454,
|
|
"z": 0,
|
|
},
|
|
Vector3 {
|
|
"x": -214.3132283208233,
|
|
"y": 845.952737798487,
|
|
"z": 0,
|
|
},
|
|
Vector3 {
|
|
"x": 110.21459553243717,
|
|
"y": 737.9436986370126,
|
|
"z": 0,
|
|
},
|
|
Vector3 {
|
|
"x": -50.99056152114299,
|
|
"y": 545.4365693400189,
|
|
"z": 0,
|
|
},
|
|
Vector3 {
|
|
"x": -198.93209353477783,
|
|
"y": 716.3607686364959,
|
|
"z": 0,
|
|
},
|
|
Vector3 {
|
|
"x": 165.35736809272308,
|
|
"y": 687.1677742176968,
|
|
"z": 0,
|
|
},
|
|
Vector3 {
|
|
"x": 29.61201700564709,
|
|
"y": 641.6901339885158,
|
|
"z": 0,
|
|
},
|
|
]
|
|
`;
|
|
|
|
exports[`非完整椭圆 offset 4`] = `
|
|
Array [
|
|
Vector3 {
|
|
"x": 503.54315778575557,
|
|
"y": 244.82096731899384,
|
|
"z": 0,
|
|
},
|
|
Vector3 {
|
|
"x": -444.3191237744614,
|
|
"y": 1038.5593006580377,
|
|
"z": 0,
|
|
},
|
|
Vector3 {
|
|
"x": 302.8211583919879,
|
|
"y": 967.9495940906507,
|
|
"z": 0,
|
|
},
|
|
Vector3 {
|
|
"x": -243.59712438069374,
|
|
"y": 315.43067388638076,
|
|
"z": 0,
|
|
},
|
|
Vector3 {
|
|
"x": -497.5429856511497,
|
|
"y": 687.5244181485352,
|
|
"z": 0,
|
|
},
|
|
Vector3 {
|
|
"x": 406.6848452512257,
|
|
"y": 865.3840719244788,
|
|
"z": 0,
|
|
},
|
|
Vector3 {
|
|
"x": 29.61201700564709,
|
|
"y": 641.6901339885158,
|
|
"z": 0,
|
|
},
|
|
]
|
|
`;
|
|
|
|
exports[`非完整椭圆 几何参数 1`] = `885.1880105792319`;
|
|
|
|
exports[`非完整椭圆 几何参数 2`] = `72828.18768552072`;
|
|
|
|
exports[`非完整椭圆 几何参数 3`] = `1211.5362655807992`;
|
|
|
|
exports[`非完整椭圆 几何参数 4`] = `72828.18768552072`;
|