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.
WebCAD/__test__/Geometry/__snapshots__/ellipse.test.ts.snap

317 lines
4.9 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": -2.4492935982947064e-14,
"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": -1.2246467991473532e-14,
"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": -7.347880794884119e-14,
"z": 0,
},
Vector3 {
"x": 0,
"y": 0,
"z": 0,
},
]
`;
exports[`完整椭圆 几何数据 1`] = `1150.6406157603783`;
exports[`完整椭圆 几何数据 2`] = `78539.81633974482`;
exports[`非完整椭圆 GetParamAtDist 1`] = `242.30690135013103`;
exports[`非完整椭圆 GetParamAtDist 2`] = `605.7672533753275`;
exports[`非完整椭圆 GetParamAtDist 3`] = `969.2276054005241`;
exports[`非完整椭圆 GetPointAtParam 1`] = `
Vector3 {
"x": -128.2467839877926,
"y": 479.9479365060515,
"z": 0,
}
`;
exports[`非完整椭圆 GetPointAtParam 2`] = `
Vector3 {
"x": 239.42920866477294,
"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.4690575735685,
"y": 706.7486518071757,
"z": 0,
},
Vector3 {
"x": 245.7998604788907,
"y": 746.573206786624,
"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.5547102218359,
"z": 0,
},
Vector3 {
"x": 205.5786142858069,
"y": 716.8704905021604,
"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.3573680927231,
"y": 687.1677742176967,
"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.5244181485353,
"z": 0,
},
Vector3 {
"x": 406.6848452512258,
"y": 865.3840719244787,
"z": 0,
},
Vector3 {
"x": 29.61201700564709,
"y": 641.6901339885158,
"z": 0,
},
]
`;
exports[`非完整椭圆 几何参数 1`] = `885.1762033087015`;
exports[`非完整椭圆 几何参数 2`] = `72828.18768552071`;
exports[`非完整椭圆 几何参数 3`] = `1211.534506750655`;
exports[`非完整椭圆 几何参数 4`] = `72828.18768552071`;