将Python转换为PHP代码 [英] Converting Python to PHP code

查看:1091
本文介绍了将Python转换为PHP代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要紧急帮助,我想将Python代码转换为PHP代码。任何帮助都会非常感激...

在此先感谢..!



   P1,P2,P3是数组 
ex =(P2 - P1)/(numpy.linalg。 norm(P2 - P1))
i = dot(例如,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是一个具有三角点的ECEF x,y,z的数组
triPt = P1 + x * ex + y * ey + z * ez

解决方案

没有可靠的自动转换工具。你必须知道Python AND PHP。

有很多建议可以帮助你: python到php转换器 [ ^ ]

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

解决方案

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


这篇关于将Python转换为PHP代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆