the same as polar point 2, polar point 1 And then I could say well, gee, are they the same point?
和另外一个极坐标点,我如果来试试,和polar,point,2是不是相同的话?
Let me give you, I'm going to create, q a polar point, I'm going to call it q, and we'll give it some random values.
让我给大家讲解下,我要去创建,一个极坐标点,然后我会去命名它为,然后我给它赋一些随机的值,好,现在我想知道。
Another reason I wanted to point this out in terms of the polar coordinates that we're using, is I think they're actually flipped from what you're used to seeing in physics.
另一个我想指出,我们采用极坐标的原因是,我认为它们实际上是,从你们习惯于看到的物理学中出来的。
And then I could do things like again, say, okay having done, that let me just run it here, run that, so I've now got polar point 1, and polar point 2.
然后给它们赋值半径和角度,然后我可以进行刚才的操作,也就是说,对刚才的笛卡尔坐标进行的操作,让我们来运行下它吧,运行下,现在我有一个极坐标点。
I've got a definition of Cartesian point, I've got a definition of polar point.
让我们运行这个程序,来把应用这些定义。
I could do the same thing, I could build polar point.
很多笛卡尔点,我可以做一些同样的操作。
Once I've got that, you notice I can now define a polar point, same way. Notice I've now solved one of my problems, which is, in each one of these cases here, I'm creating both x y and radius angle values inside of there.
你们注意到我现在可以,定义一个极坐标点了,以同样的方式,请注意到现在,我已经解决了我的问题之一了,也就是,在这些例子中的每一个,我在里面都创建了x,y值。
So for example I defined p, remember back over here, as a Cartesian point, but I can actually ask for its polar form.
我可以要求返回它的极坐标形式,这里对我是可访问的,好,这很棒,请再记另外一个为什么。
I could imagine writing another function for same point, and I have to give it a name like same point polar, and same point Cartesian.
程序不知道怎么来做了,它没有对应的处理方法,所以它要抱怨了,那么我这里的问题就是,这也是我一直想要说的。
应用推荐