Click here to Skip to main content
14,032,693 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
Posted
Updated 2-Mar-19 10:40am
v6
Comments
InsertCleverUserName 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.
—SA
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...
—SA

1 solution

Rate this: bad
 
good
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)

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Cookies | Terms of Service
Web02 | 2.8.190419.4 | Last Updated 2 Mar 2019
Copyright © CodeProject, 1999-2019
All Rights Reserved.
Layout: fixed | fluid

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