Distance from point to ellipsoidΒΆ

plot point to ellipsoid
2.780273001863922
0.0
0.5324624676615182
1.243136139114527
0.9081288806188723
1.7309952277993446
1.1784596057598509
1.589499576796775
0.0
0.18025946796899422
0.8961408020416667
1.7286354261513825
0.0
0.0
2.163758490134284
2.2132237067054854
1.129597736869075
1.2900998372735146
1.8640930700817189
2.4213428983432097
0.5380651296879255
0.8076699249304965
2.369419614767735
0.7483493370415955
1.9100768081423922
1.890913319658407
1.8872401021189948
0.5686536311121169
0.20124090580816237
1.275940747279449
0.0
1.422847013124616
2.1308485262662966
0.43101047558122463
0.0
1.1370795959934967
1.487135658134727
1.5543458329722089
1.2042131412571244
1.6940511558270188
0.7628129178835791
0.5577223245056769
1.6922601837439628
0.3594558253223341
0.49666447134906644
1.0540286849808025
2.9418760900879946
1.3292292646468955
0.6718877253674408
0.030312222023605586
0.5969627275604336
0.509069891701581
2.5280525710094017
2.3719256782173073
0.0988339242863895
0.983436686946318
0.44284761179010634
0.3621121788182389
1.4045430817999032
2.053436102058207
2.098286531571354
0.5105349062445806
1.1835225712486244
1.2959543922894188
0.4919168163046449
0.0
2.2080563884530746
2.71187635297473
1.9849000847330693
0.6703024461420848
0.7159047503881637
0.1906093477922902
1.425464662632446
2.4677054638019955
0.0
1.2290059675209761
0.7561380380577074
1.7489354283561713
0.3678417351200326
0.6602507660779069
2.550458083130957
1.1870486538644045
3.0842608000701683
2.2410807345254207
0.5088664374323111
0.08832203004474547
2.0174533087159476
1.3911890746503361
0.6850868552954283
0.9208235727153484
0.568974517479711
2.6446689580281486
0.4759610735796235
1.9424787731531206
0.4260237721614875
3.4516131868766524
0.0
1.5882703146749242
0.0
0.7821742878161895
2.5393842792640426
1.7876701841941454
0.0
1.14458463596813
2.384513865386878
1.4342237728890876
1.085623645362594
0.8605637237158466
4.027917379910934
2.01057565750889
2.011206284677212
0.7671375293148829
2.7065910112287908
0.9303226076685999
0.0
1.314125753020585
0.11824308436995973
0.22496575830321636
0.6131401473477359
3.2182346703143443
0.715768252075378
0.0
1.406004380154213
0.0
0.0
1.6969102693119866
1.203488693255403
0.8125292359669498
0.8898017195487644
1.1322691439447263
0.21835874960512383
0.0
0.5865664136864102
0.09116246840768366
1.6394791312953658
1.6413406524710714
3.336069082298732
0.9166253930861183
0.0
0.8431665075355506
1.203010968358125
0.0006018370870299478
1.8921613267399784
1.6621253598587766
0.8919025496344843
0.8151728763430224
0.28551659342315566
0.9889295630692012
1.6626414252981276
2.723256696348839
0.8310117278157755
1.2589183734959248
1.2263813196954947
1.9946344607232989
1.300952132344769
1.1352029094905394
0.928827249345422
0.3872490095395084
1.1814131523489462
1.8817034561150066
0.6141862517974703
0.0
1.5155980016865858
0.0
0.3206504487252897
1.3537426126601657
1.3241798436326293
2.0729510582854243
1.7585337280832252
1.0924258993790923
1.7768451477533111
1.2148086132852343
0.0
0.0
1.5137333091144693
1.2782724845616196
0.839388984348067
0.2787612835327015
0.0
2.9345669702668706
0.8802415614001685
0.0
1.6845148032229555
1.1087636873463693
1.0682046952254165
2.006852799937569
1.239666548172173
0.2190431995998967
0.9626524579033785
0.8514674739812753
0.347379543037453
1.7501485029111694
0.9195239290077689
0.3521268595823162
0.0
1.5388901685200418
0.6207444200954043
2.6146228961438807
0.0
1.8745368625181795
1.2519709077893544
1.4680776370065636
0.6856109955208498
0.32310236956599914
0.6516013996758842
2.1349649923545706
0.0
2.4344018711808006
1.055583365198728
1.0493351774107356
2.4296739422909073
1.7902497099496106
0.0
2.2613374996117015
1.0622526757245354
0.19215679114532383
2.129887299892258
0.0
1.322897820405295
1.5586490167701907
1.8135639523280025
1.6391250344180306
1.5347200699275168
1.5477338568108414
1.7599639441705346
0.0
2.706781686985807
1.7400560715280908
1.4387578693182037
0.6636031176770826
2.368360593355735
1.6888208103170255
1.7927448565396016
0.0
0.5299514482831472
1.4649990242269109
1.4744975606366804
0.14824836681759623
1.3057202584045813
0.08485457338302274
0.7075719015039508
1.4833044271473035
0.0727027288542773
1.4216232196879652
1.5785993772323768
1.906547136549504
1.2824552769407713
0.0
0.3409516527377483
0.562039275520363
1.2726669432191609
0.7929956169742697
2.772767708035836
0.0
0.8376117455026497
0.7396242208291856
0.23462350968140683
0.22381931668823166
0.8198300921503282
0.108383038642263
1.219556263485783
0.7872420758876945
1.2865889604060707
1.0388040655551742
0.5811894899525782
0.18644413545376748
0.8096783472858099
1.2600478203198329
0.334555011552801
0.6130939173529256
1.2684835791923372
0.4312741737492555
1.2571330783028896
1.6618498166006201
1.2222022278488083
0.11700253021362575
0.0
0.20552274905861714
1.176254325832532
2.6502426915718815
1.9466930179817605
0.0
1.4167768982829205
1.423506217478344
1.4472350658401163
0.0
1.3433840239421977
2.2748643851889665
1.6430544109405056
0.16727830191519438
0.6054719278174939
0.05312085636479651
2.5961720908972614
1.0274398014788308
2.113661991570754
1.3850232125842417
1.6855235811837066
1.6216856612640644
0.0
0.9724835887645502
0.3775458643836362
2.180338521557703
0.8956366290004031
1.7639735553979556
2.225161321837318
0.4214203821516762
1.8833983849552378
2.465657242597435
1.5331982839242793
1.220932532892221
1.5679169617151785
2.0407799300349643
1.1005833630606623
0.7680092568068083
0.04171736806075021
2.265189974865274
0.8663170977204128
0.5948179642592473
2.2743620828377673
0.7102031875305144
0.04677454709102301
0.02251016409335888
1.4644622503773537
1.4709162960514839
0.449936845063638
2.3076299776625344
1.135753753820143
0.0
0.4097821298384162
0.8233822410914069
1.504089496021727
0.6564306863624862
0.0
1.330247383352953
1.5543538751448385
1.6433299619095447
1.9296045941291708
0.0
0.7258252174957824
2.5383276509121613
0.5129185009039585
0.9436399804786061
0.8502287234432986
1.519268492132248
1.730032703221733
1.779431237077314
0.4768669517324319
2.7436619664200985
1.638171070491343
0.0
1.5238082266297486
0.4315336240221422
0.8449140297398041
1.229266613542919
1.573056282624391
1.1795551202537398
0.7920138955339409
0.9056038890460325
0.0
1.1292912951677907
1.3179320533765109
0.3823320181671807
0.0
0.5624194100994379
2.3752320231898514
1.022400075449603
1.3787297895066801
0.673486192745029
0.6153041546899549
0.7196850877790292
0.0
0.6677537573901767
1.1919325152526943
0.19358639371230812
0.8836464648144006
1.2012700292031628
0.5803741269041873
1.2820712844194524
0.4770104621769517
0.17212694195763423
1.4304941739778092
0.0
2.057229419344624
0.575583843311773
0.3697066488230558
2.154046483907289
0.9020887687352551
0.19675403356985238
0.0
0.8407911899479354
1.7635995714888877
0.0
0.4521040028038498
2.0743377056104273
0.5230538723326871
1.9136503414191357
2.4712089115080516
1.0694284317735032
0.0
1.5212839466400263
1.5103656724324206
0.09338092288321187
0.3139866976594059
0.8935382557911931
2.172157844483296
3.3414432222875154
0.3488915624406694
1.0302813294476054
1.3770648917362436
1.2538314018836378
1.956256210122305
0.15676811088142498
0.610766453114126
1.5423727777899403
0.9340293836207932
0.3934294830225121
0.13181453484649816
1.1239298015883787
0.0
0.5363904172557059
0.7871149960474124
1.3608424810410706
1.9681727078733269
3.4915597964705
0.9462049066443993
0.5045960200391943
1.538997245549607
1.7425418017018373
0.9345749393450774
2.092987349617609
0.0
0.4882153468399055
0.0
1.267787856240275
1.4012174086962164
0.9539527523373917
0.026124769133168822
1.3686863853260351
0.4135339113125217
2.1901424226181505
1.0366245313725644
0.0
0.250836861156727
0.8445770973239918
1.1187998886293045
2.056665889303938
0.36461498764565553
0.43499732523808626
0.7721069528082645
3.1604506312035716
1.2311395646030343
0.36334527800541816
1.0499360241436493
0.5330861896778422
1.4013940184693403
2.191968875127936
1.5599055200973684
1.096671263245512
1.4868632830292225
1.4159698389112156
0.7398568253814833
0.1434060969898129
0.0
2.0792361642951245
0.0998262046847019
1.208049721094519
0.20905828763926154
0.0
1.1323699942388523
0.7514436863569397
1.465076949877131
0.29656195967538146
1.1861194221290694
2.0121722276742044
2.025658472630188
2.2085191705146205
2.4155198473664647
0.4128221738006938
0.0
1.892870154490956
0.8156661412806463
0.0
0.7683285844209575
0.0
1.2686508425230807
1.0475809278186858
1.610451775937212
1.1746486636886908
3.017740127680687
0.37318008894073607
1.4730179715641447
3.119615456053765
2.610832195423546
1.8776300495779312
0.0
2.20158232722851
1.3944095923011213
2.072130562188468
1.0270920269010315
0.27280501657999795
1.0595803656979823
0.9116834270676544
0.0
3.2249918829816955
1.8015030013984916
1.9480563131525461
0.0
0.6676609173323631
0.970601929159225
1.1821060164053965
1.3287367703303665
1.7271579535747257
1.522851769054207
2.362366647714917
2.414957381578538
1.0224748547388325
0.0
0.6692267999117294
1.4947516916360462
2.2045705317948463
1.3905305580192933
1.9521165085086756
0.7137519546153237
2.3173875416945475
1.4066158956223986
2.1319399824926974
0.48619679280788586
0.0
1.9032018226234861
0.9169391641211807
2.340000431660797
0.0
1.8500593217109265
0.8393135151151803
0.4349600263861231
1.140137130704543
1.0641201050014089
1.8323233411847706
1.5880375701710796
1.290208354635014
1.589243944712642
1.3475816685382043
2.501227844413782
0.6609339017299574
1.1751773213820664
1.0477888545249099
0.28956622792159326
0.8507283979745941
0.0
1.8216802575480995
0.20371768935561002
0.09651775691648704
1.0612031916981577
2.395341373372916
0.0
2.4630484890422277
0.5730747029024313
1.5441978717683427
0.7176739733561579
0.5853903777485242
1.7155302682510187
1.3074626431910716
0.0
2.4672305572468294
0.0
1.386154938412233
0.9892149318105597
0.9711319976979759
1.869602023412709
0.41580569474006107
0.5726400569540283
1.065720463668406
0.5880032381627863
2.007174711714315
0.5589391752583205
1.2000654897057326
0.03808995870552747
0.6078339741092608
0.9856891602379453
3.0152530805823363
1.0472418851096452
0.9765124381626341
0.8013795705051094
1.8331059558880454
1.469384285427092
0.960866181573457
0.0
1.9181823519027104
1.084532947589762
2.3465551759254746
2.3756378202375554
0.14168626919924374
2.4237149618557763
0.0
0.49634215688871164
0.37800597706486916
0.6454271426780009
0.8344980917554313
2.0301861828555583
1.4076523395671803
0.6523780727193286
0.2643620637413337
0.5630119338319727
0.03924395336700118
1.1761068438296451
0.09466556717110704
0.5304825518553209
1.3172525388851932
1.4527391518340118
0.5473830780092229
0.26282712468412334
2.046934060367891
1.1999026424267194
0.6939448524110206
1.9987022603415214
0.36843179629206574
1.6081802743241145
1.058095615093151
1.620973508849932
0.4230706024091814
1.4963954138793514
0.8136547138914438
0.0
1.6012473890321137
0.6995847510014034
0.7604651586308122
1.202606015575385
1.8191586752062827
0.3221882981127515
2.27262223048995
1.9682743152242708
0.0
1.2838333641445903
1.1504233143898257
1.1786272930999693
0.6360548306710258
1.7262695409031061
1.4345219902488646
0.5279690857224099
1.6771452775750137
1.6250530789920383
0.5291484864397322
0.30089639123776285
0.11828243330679675
0.8589047688035825
2.068140318581301
0.8534035832595727
0.6828105838089378
0.09745539568512124
1.7763879028574585
0.7005621763642333
1.7709105312435272
1.0021232152206085
1.8115214093071625
1.3049236056774114
1.2751456547324183
1.0904267611443461
0.9003105953871019
0.7132074678020859
0.0
0.3233319188174175
0.24160959161363635
1.5278152488001824
1.2535194901923206
1.136008149044755
0.0
0.8091637392067165
1.8382693389743479
0.0
0.4092180118326773
1.0837537842804865
2.1882617788307224
2.009195410782452
0.7201879200620435
2.1999332873410906
0.27738515960413446
1.2331181383210001
0.7575671024666712
0.0
1.8095321205808585
0.28126500845189545
0.5034910730603048
0.3607551683115917
0.12649848869049105
0.08510595626795707
1.1913875493431183
0.731243080213626
1.325962189247489
0.17130246300182916
1.2496223434235199
0.7023458106541155
0.5691895201802756
1.3399434839668543
1.9954318048133226
2.120622294465058
1.438310839103231
1.878840469120254
0.02595765505179459
0.0
2.4923989303381875
1.4897521939506226
1.6930410899159505
0.47184039896422636
1.280579609442664
0.9017722365635407
0.39248799007177204
2.989277891946105
2.233972611790926
0.0
0.0
2.4283878182789285
1.8087107441138957
0.7418345321253442
1.0849236503512723
0.37177556938671397
1.145120814457834
0.22217429666350566
1.6159711326198245
1.7980949336376781
1.1637753391035481
0.16825921452806397
0.0
1.6852163565683642
0.04191903931053714
1.2232769912263959
1.2686582313036068
2.033402626762954
2.010148137686841
0.9028209746668223
0.5479433042574146
1.2486942500159526
1.3000777998441373
1.5894697901046573
1.05728656772079
1.893494569672211
0.8324324395571294
2.2982793279176312
1.147380204086336
1.4211141771496962
2.169914057858951
0.5636225602445121
2.190994672055077
0.640303495051795
0.08539020927726473
2.557184417038939
0.833752309813193
1.209979338414488
0.0
0.43436886325811985
2.208357013078489
0.5736536147893535
0.8995804280281955
0.3385930197383819
1.9747786117528785
0.0
1.4929780865972884
0.7892613094041978
1.5352727197572613
0.11897144099340512
1.5102027279286778
0.1794599878838329
1.657499579377368
0.9957314044753384
0.0
1.2341701060246415
2.4383158168497836
0.4630250442555559
0.32491003205357405
1.349911248653629
0.9711566962351906
1.7915067663858069
1.5135525435146584
2.0747328467073856
0.9096960866330215
0.856150741396527
1.4687021079796199
1.48392183298062
0.6401377794186683
1.0486582344251878
2.3330941702408277
0.4663277283457146
0.0
1.0178306703325233
1.2491531962817521
1.1841667372440996
1.319529979739107
0.6970193128631837
0.12189837411552151
1.840495268173182
0.0
1.3638633104284204
2.2490794200794113
1.2534044885486626
0.9288300320227227
0.8631419475634842
1.7596510395985516
0.33999684116052226
2.1523861292343436
0.34293859870890286
2.66236641831988
1.7314756885113656
1.8684764098972486
2.5836388380950512
0.0
0.0
0.06603769886937662
0.18447561559575779
2.7971636186331046
1.5162852861913743
0.32493481497481375
0.5634428435090431
2.984474588995187
2.029747180870471
1.977860921585174
1.749574967646771
2.401334460686217
1.535705022567126
1.45464996218802
1.1389775730097575
0.6934127151599209
1.6071970666459134
1.18297861431161
0.8044023482200834
2.0682767823436206
2.896732252241993
0.0478137352862229
0.7383281364168506
1.7676009843258924
0.9599645201899432
1.2556925050471688
1.9505288746399125
2.537753072731219
1.294332798280718
0.48813800102100696
1.7615639731390538
0.629076835847066
2.2104838453979117
0.0
0.9908384115936294
1.1815500846699527
1.2721761652501822
2.134514508320784
1.103392952159058
1.1020134185578176
1.0808798598315006
1.2852789511798481
0.9733635070624324
1.781629021789863
0.05003659393408036
1.8249171748717836
1.2126994903742874
1.3169008464611147
1.2244834438357324
1.0572508859609517
0.0
1.4799801976619686
1.3998462582194124
0.909313427577526
0.6172614524685438
1.6510321069368714
0.11788161414862157
0.30554336963091794
0.3786691840125329
1.116169477037423
0.22707202934158607
0.7237361665784525
0.0
1.1803777434076983
0.48371090350300067
1.1361954489766897
1.7173904548654115
1.3529612598647263
0.5117400689617461
1.5825776587025036
0.5188648484013247
1.425815396016879
0.7639161741178082
1.2450113739705029
0.34244664035903777
0.5352774635275327
0.7091180919125811
1.3698341860998522
1.0077616742231925
1.5091920791634617
0.0
0.0
0.44540510891517127
0.0
0.645671451428893
1.1159062629909775
2.2725207511550103
0.8318135814526264
0.0
1.759898103216582
1.7686500199767996
1.6867153291538695
2.3974201524158647
0.0
0.4835210604311847
1.6815417004138635
1.242778719666443
1.1691982282896198
1.6514297851657622
0.1139891506341975
1.0779103991894017
1.9941141407325478
2.211020588084771
0.14074547159324918
0.4770316970819937
1.528287399551426
0.7764573163803377
0.760029986961221
1.2747825352674018
0.13495359527948558
0.49864575463470795
0.0
1.826045692450191
1.2660169695962287
1.3489456221056637
1.679665525055846
1.437226320544285
0.19752310638046433
1.1519448509559773
0.0
1.545524200504335
1.139891605316322
2.1081364229457393
0.7920091729321532
2.3819774056177905
0.0
1.4471241793987883
0.9609723365526792
2.1343319835630297
0.04616030651348138
0.47568342102835165
0.6813788858896153
0.08245303233134042
0.34103439685302683
0.0
1.496380579262488
1.8717016785370033
0.49991421510874523
0.7969467229729007
1.2550265041703499
1.0922968072858585
1.4324392667829227
0.32669834882550497
1.346372029603906
2.5125765196640852
1.9963316576342613
1.8478227685098658
2.140529161696863
0.5709038967160724
1.4978345925874414
0.38924056086908954
1.598226077768114
1.2852790157524954
0.7679110921272394
1.2978559167597474
0.7758485967920888
0.1562851236594693
1.5024034955998176
1.3501639962635774
0.7833767420702404
1.7029029698678424
0.08208477423816184
1.6582031697371056
0.8156165620321278
0.03231323776503668
2.231142268021483
1.5868716346382141
1.1700215572485682
0.3654303369715373
1.6160412329178933
1.388488192997664
1.388405636018808
0.6785692676463528
1.0016921361806839
0.29616033565902505
1.1863809137176093
1.3793167141928533
0.8633373948551947
0.6719839386695055
0.0
1.420819047796489
0.02669352013968013
2.3452170575883993
3.0588236491348715
1.4162504963593328
0.5971571530578839
0.0
0.47581085308399335
0.7495718548441896
0.5245005082913045
2.128601844640134
2.3547913642056426
0.0
2.07445937639502
0.0
2.140663888402072
0.5867139897135386
0.6149425582066911
0.6514928203789795
0.407871825537869
0.8063911758086796
2.4687079139575263
1.8046581833441242
1.3389492137593864
1.7333131015723184
1.6801960990307558
0.5659493621556917
1.1515597249138236
1.3001317862649313
0.7745441393614664
1.8329218735759514
0.0
1.0188235228540925
1.8448780678133239
0.8836337771269593
0.6529994594777576
1.165061518894469
0.0
1.1694535443828162
0.4655505748708677
0.0
0.0
1.1094947720642432
1.8692401490453676
1.7664450508569232
0.7554465122873212
1.1876817394315982
1.2699307682392167
1.591445198824023
1.144186309887348
2.3002787537443465
0.7312823669255399
0.8790202257066362
1.617879125459321
0.4703151696652977
0.8732553475392303
0.995311185314281
0.0
0.505001576731323
0.6162344342423792
1.878624281258133
1.4935073093048208
1.1690293715812157
0.3366483725714377
2.537499996922219
1.0748864054425404
0.7338285519047073
0.9455534704106641
2.3348490510692295
1.1131695208924717
1.4050105131754267
0.0
1.3504443015260859
0.11379299022641283
0.039524731429372593
1.184467615998723
1.5885799435979961
2.9867295975926447
2.922377355191348
0.7466362486987145
1.330306810390262
1.3229134062677912
0.6091200053556758
1.9419224658221104
0.0
1.6381986364075685
0.28421226081606205
1.7876757328469337
0.977947238559779
0.6830941535390419
0.6346135212493035
0.49256398068734053
0.0
1.2815906847998584
0.24076989374015215
1.065384097154887
2.5753749100118273
2.9210063594352085
0.551696657128054
2.4685180064809087
1.0950004650204745
1.0769334545456037
1.95817333115559
0.006500774017923296
1.535875543034652
1.6893486520743308
0.9202975530083652
1.4244156766085356
1.5052810652403632
0.5797285552057264
0.6043954107331388
2.127146876513894
1.167291562168329
1.0617430129537653
2.4444568932074584
0.9598630305552929
1.4100223057746706
1.6391671177271818
1.0617442607747116
0.8462349578769679
1.4073923570782065
1.6660101761758537
2.0473128809219756
0.28456347348208993
2.0525476879966087
1.5131053281917095
1.1979681707446952
1.8174793314493631
1.4208635319180456
1.155270731149649
0.14029545504208257
1.1533201576407246
0.5547741937207724
1.3009063607781406
1.1921950129394554
1.6783546866202144
1.8454627993613006
0.043102854632937775
2.4593502613651625
0.0
0.6030087131815884
0.9598210652727255
1.026422536614659
0.06299135634089063
0.42295959509559544
0.6583977822851478
0.5438807782431396
1.5104684843620528
2.3409563419778165
2.2966858402280432
0.2616761325733068
0.6496297122457017
0.33878284459043034
1.0733456307528704
1.0325962783006002
0.0
0.0
1.1121413584479567
2.9479716141450663
0.0
0.528716153215718
0.0
0.3177518771084035
0.9062703214597493
0.0
0.342393585772284
1.4757922785293858
1.1676234674789716
0.7948917396044675
0.458941406053286
1.5572709699564902
0.25133301976433764
2.0538910601179245
0.7328990247718435
0.6401838981435809
0.0
0.5368442648338672
0.6082149610038292
0.6393805801048416
1.1627688205160553
2.004873121672158
1.8352659935121847
0.7367783877308235
0.32904847241776247
2.0136611268058986
1.6683449551987763
1.0856616054305965
1.2130711437726438
1.3812338917692042
1.12623712438366
0.0
1.823243821740477
2.910054340427516
0.6922873221301635
1.2545671922139292
0.0
1.8264411374609606
2.3044261591074777
2.587427834986791
1.0859378758020053
0.7909182193117051
0.11638951946961051
0.0
1.4138073131741293
0.0
1.9813262692895113
1.2380277837893614
2.257878270893251
1.7721846078348953
2.750428749066998
0.6061128890644191
0.9440173353541812
0.27628400067356085
1.0398573412839052
1.2116481522154456
0.7228978672697357
0.9854733356787727
2.3059916706654278
0.0
0.5341138421184952
0.0
2.7838915042454215
0.8410255405797558
0.19331024151948023
0.561010465129676
0.8739216192876177
0.7351296420930357
0.0
0.04146340500259851
0.3032262444165014
2.5306824364800575
0.37873952775089875
0.7809166980817079
0.8749839886769195
1.701661849867356
0.8184071409399055
2.9725515629389436
0.07711655646485659
2.629769826208759
0.8754871619982707
2.2114634273951754
1.8302188591575936
1.1374978978275052
0.051198253435494
0.6390006229783954
2.569716202823666
0.8520118300527848
2.4545417775345966
0.2233269676507767
1.3695638749432726
0.9256571964570721
1.1856025819850275
0.9857741462013263
2.126209999410227
0.06935682576684654
1.5111513404202874
2.132136787495181
0.0
1.207729886676728
1.5404414216950193
1.477748012535071
2.528441533271053
0.483189313758596
0.592405675677196
1.526350078607096
1.1765088267557093
0.9997896096081937
3.6767981552324276
0.7991639387287502
0.0
0.6557397429904539
1.7523659987105018
1.3434743518015093
1.672564249049561
1.1201909517480213
2.3657331519299976
1.6285425792249724
0.5862241661333161
2.5389382759811494
0.7724658890004659
0.22356545006130013
0.9111183546655984
0.0
0.565896376547773
1.1038705996833882
2.6176415642120263
0.5600924437542588
1.8795067937467724
0.19627067336591
1.2738105211453792
0.4889424374295972
1.0990843257509926
0.6164062612887262
0.9891268609284972
1.178236390018738
2.0615773636378374
1.7898585326769434
0.0
0.0
0.7861214516163819
1.2138915258706897
2.015344253584733
0.2825362792663545
1.9054977489181146
1.5463597693371796
1.4553764396666096
0.8853772623298329
0.4061870149133282
1.0626251849057209
1.4918728829788506
0.2972237460080499
2.550532337881161
0.42934793171692354
2.399164092065758
1.1729514426615804
1.6064173122772025
0.0
0.0
2.2043618982435618
1.8292594684759247
2.488335164304794
1.7351201719195164
0.5562896241678058
0.3640351655468892
0.944293124282545
0.04896420033564535
0.8622962408458291
0.4641183254962001
1.4001481076834699
0.1734025769866541
0.43999259505276367
1.612973499009642
1.0597195675054105
0.8460365811340221
0.6111504407238119
2.882389492461903
2.8113706339428304
0.0
0.7309483546617958
0.12913631486427957
1.8678515841362273
2.3166805514140245
0.0
0.0
0.9854558628638318
0.6585337860692625
0.1989200435878201
2.2282779700620865
0.23144035611121772
0.0
0.964445046633976
0.7235889686199927
2.2252688278297055
0.24578315494911698
0.545989103522133
0.513497019210492
1.7739605164334402
0.0
0.0
1.2611247029099677
2.58713127424756
1.5243032133771501
0.0
1.7581495177818034
1.2463488471356194
0.10251891108902418
0.0
0.8075973291342171
0.8559881052224992
0.5218710804858603
2.7729742929269
0.371465761758839
1.5775615422685223
0.0
0.01109416601022221
1.7473404430924102
0.03239916095045557
0.2599707216171576
2.0828954917625415
1.7709903066205035
1.6029999344457055
0.46233239823936756
1.1781726140549764
0.0
1.1406789090927127
2.9458167306089744
0.31494083996379146
0.8117814983238634
0.5388461888069987
0.8357451975117359
1.9146558255710113
0.0
1.6392311383868938
1.6025469580024783
0.08711181656541463
1.5549386261120652
1.0019827456172017
0.932353413755364
1.0507059388640214
2.337502417917369
1.0920894387505826
2.081648870649323
0.0
0.2547489480870702
1.8542372149764192
0.0
1.010642367716553
0.6772666387914142
2.427063490930181
0.1303889690331596
1.0798344028656681
0.0
2.5450184286893185
1.2129331187282966
0.8008874727727909
2.3011290227828387
0.855433801924736
0.0
2.247823643740849
0.6369712172850154
2.529084162192078
1.869170318571064
0.0
0.5735403841390212
1.5746274600901804
1.9859058298700103
0.3438935683373066
1.9537519580355205
0.7863899156226694
1.5068517976337794
0.5190474772970166
2.260559715097781
2.29591848056636
0.8618166269427857
2.4764271621509693
0.0
1.338520519839412
0.06240369323068079
1.3587090038471954
1.1239132456373688
0.7316257768405571
2.9355509281563172
1.0600717978190084
0.2138567973468365
1.1807457581271215
1.3115337376955107
0.0
1.93308708882571
2.35769458758408
0.0
0.08959968915212663
1.2883644725395356
0.43648181222036975
0.41173123395822764
1.2622490847032541
2.7745557557220466
0.8959602046553472
0.0
2.2075278869990487
1.990273115438566
0.0
0.1320446823529676
0.0
0.8228860128138182
1.6699387940825117
0.8438956791875626
0.45068944858326015
0.12362740938110661
0.0
2.030810121583541
2.2736436566619265
1.3773504269600785
1.1289228025775346
0.18747005523053686
1.456373605799415
0.8067054473601654
1.1669016841809912
1.672161651550302
1.4850830014211207
1.7739066276541278
1.282282129222975
1.6508789707886955
1.060626381230212
0.4283330261495289
0.0
0.8351761195483777
1.348788296494904
1.7816697003967827
0.0
1.4560008425771336
1.2679755716558478
1.0416075034857755
0.5584164578395493
1.1932539874734016
1.5461711058903704
0.6202465062312248
2.217293636751658
0.0
0.585816350677011
1.832081247093618
2.2349948316396304
0.23669223966905242
1.3689799499829656
0.2777166980113979
0.2177040523205176
0.0
1.1323518261501473
0.6073439691905391
0.02442195522052053
0.5769367269513879
2.2564119434654555
1.7898835718965491
0.21198819482206901
1.063323854130916
1.2820703705418683
2.619536336128212
accumulated_time=0.3312356472015381

print(__doc__)
import time
import numpy as np
import matplotlib.pyplot as plt
import pytransform3d.transformations as pt
import pytransform3d.plot_utils as ppu
from distance3d.distance import point_to_ellipsoid
from distance3d import random, plotting


random_state = np.random.RandomState(3)
ellipsoid2origin, radii = random.rand_ellipsoid(random_state, min_radius=0.5)

ax = ppu.make_3d_axis(ax_s=2)

accumulated_time = 0.0
for i in range(1500):
    point = random.randn_point(random_state)
    start = time.time()
    dist, closest_point = point_to_ellipsoid(point, ellipsoid2origin, radii)
    end = time.time()
    accumulated_time += end - start
    print(dist)
    if i > 50:
        continue
    plotting.plot_segment(ax, point, closest_point, lw=1)
print(f"{accumulated_time=}")

ppu.plot_ellipsoid(ax=ax, A2B=ellipsoid2origin, radii=radii, wireframe=False, alpha=0.5)
pt.plot_transform(ax=ax, A2B=ellipsoid2origin, s=0.1)

plt.show()

Total running time of the script: ( 0 minutes 0.559 seconds)

Gallery generated by Sphinx-Gallery