Now I have the ability to say, I've got a new class, I can create instances of a line segment, and it's elements are themselves instances of points. OK?
这就是我们要讲模块化的地方了,现在我可以说,我创建了一个新类,我可以创建线段的实例了,这些实例的元素?
So an easy thing to do in planar geometry is I want to make a line segment.
在平面几何里比较容易的一件事,就是做一个线段。
There's a line segment, it's got a starting point and ending point.
做一个线段,需要一个,开始点和一个结束点。
The length of a line segment?
好,几何学是怎么说的来着?
应用推荐