Click here to Skip to main content
15,746,883 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
I need an urgent help ,i want to convert below Python code to PHP code. Any help would be really appreciated ...
Thanks In Advance..!

# P1 , P2 , P3 are array
ex = (P2 - P1)/(numpy.linalg.norm(P2 - P1))
i = dot(ex, P3 - P1)
ey = (P3 - P1 - i*ex)/(numpy.linalg.norm(P3 - P1 - i*ex))
ez = numpy.cross(ex,ey)
d = numpy.linalg.norm(P2 - P1)
j = dot(ey, P3 - P1)
#triPt is an array with ECEF x,y,z of trilateration point
triPt = P1 + x*ex + y*ey + z*ez
Updated 18-Jul-20 17:40pm
[no name] 30-Mar-14 10:50am    
CodeProject is not a code translation service.
Member 10659604 30-Mar-14 10:55am    
i want help with converting dot , numpy.linalg.norm and numpy.cross...
Sergey Alexandrovich Kryukov 30-Mar-14 20:28pm    
I know. This is not a question, too.
Member 10659604 30-Mar-14 21:11pm    
Let me know please....
Sergey Alexandrovich Kryukov 30-Mar-14 21:54pm    
There is nothing to "know"; this is some work to do; and you don't want to do it, but why do you think someone else should do your work. I think this matter is exhausted already; nothing to discuss...

1 solution

There is no reliable auto-converting tool. You have to know Python AND PHP.
There is a bunch of suggestion to help you:python to php converter[^]
Share this answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900