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值。
Sorry, said that wrong, p1 radius 1 and angle 2, 2 radians is a little bit more than pi half.
而是半径和角度的表示,在这个例子中点,并不对应这个点,它实际上对应的是。
If its in Cartesian form I'll pass in an x and y and compute what a radius and angle is.
来得到的这个点,我都可以得到这个点的,全部的这种信息。
self y Notice what I also do here, I create self dot y, give it a value, and then, oh cool, I can also set up what's the radius and angle for this point, by just doing a little bit of work.
我创建了,然后给它赋值,然后,噢太酷了,通过做一点额外的工作,就可以得到点的半径和角度了,好,实际上如果。
Now, suppose in fact these weren't x and y glued together, these were radius and angle glued together.
我实际也说过了,我在这里操作的是,和这两个点。
If it's in polar form I passed in a radius and angle and I'll compute what the x- and y- value is.
以及半径和角度,但是现在是这样的,不管我是以哪种形式。
In that case point p 1 doesn't correspond to this point, it actually corresponds to the point of radius 2 and angle 1, which is about here.
基本上也就是说这是第一个点1,这是第二个点,把它们的值加到一起,然后我就得到了目标点,好,这听起来挺不错的。
And the second point is of radius 3 and angle 1, which is up about there.
半径为2然后角度为1的一个点,也就是差不多在这儿,我认为为了确保我做的是。
Another way to represent a point in a plane is I've got a radius and I've got an angle from the x-axis, right, and that's a standard thing you might do.
平面上面的点的方法,也就是极坐标,上面那种方法其实是,如果你们喜欢我这么说的话,笛卡尔坐标表示法。
It's now got a different radius, same angle, so I just changed the radius of it.
我刚刚改变了它的半径,噢,但是对于笛卡尔形式来说。
So this is giving me now that template, better way of saying it, all right, a template now, for a point is x, y, radius, angle.
其他的方法来进行计算,但是这就是典型的我,要放置它们的地方,因此这就给了我一个模板。
I was expecting to compare x- and y- values, not radius and angle.
噢,发生了什么?,好吧有错误了。
应用推荐