Click here to Skip to main content
14,539,164 members
Rate this:
Please Sign up or sign in to vote.
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 2-Mar-19 10:40am
[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

Rate this:
Please Sign up or sign in to vote.

Solution 1

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[^]

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

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100