If its in Cartesian form I'll pass in an x and y and compute what a radius and angle is.
来得到的这个点,我都可以得到这个点的,全部的这种信息。
If I look at the Cartesian, oh, I did have the Cartesian form, don't mind me while I mutter to myself here quietly.
如果我来看看这个笛卡尔,哦,我还没有笛卡尔形式,当我自言自语的时候,请大家别介意。
You know when you add 2 polar forms, you add the radii together, you don't add the angles together, you need to do it in Cartesian form.
表示形式的不同理解,返回给你了不同的值,这也就带来了一系列的问题,第二个问题是。
How do you know whether it's in Cartesian form or in polar form?
这没什么了不起的,但是现在出现问题了?
If I now say, I'm going to go ahead and change the radius of this, something, my polar form did it right, but what happened to the Cartesian form?
如果我现在说,我要去改变这里的半径,一些这样的操作,我的极坐标形式,进行了正确的改动?
Oh, but what happened to the Cartesian form.
发生了什么呢?
It says, if I want to print out something I built in Cartesian form up here, says, again, I'm going to pass it in a pointer to the instance, that self thing, and then I'm going to return a string that I combine together with an open self and close paren, a comma in the middle, and getting the x-value and the y-value and converting them into strings before I put the whole thing together.
这不仅仅是个列表,它是怎么来做的?,流程是:如果我想要返回,一些已经在笛卡尔模式下建好的值,好,再说一遍,我首先要传入一个,指向实例的指针,也就是,然后我会返回一个,由开括号,闭括号,中间的一个逗号,以及提前转换为字符串格式的。
I should have done this earlier by typing the Cartesian form earlier, so let me go back to where I was, sorry for that, let me go make this a 1 again.
我应该早点通过输入笛卡尔形式,来说明这个的,那么让我回到刚才说到的地方,很抱歉,让我去把,这个a,1再做一遍。
So for example I defined p, remember back over here, as a Cartesian point, but I can actually ask for its polar form.
我可以要求返回它的极坐标形式,这里对我是可访问的,好,这很棒,请再记另外一个为什么。
应用推荐