Skip to content

Commit 1998460

Browse files
author
Rohit Malhotra
authored
Update README.md
1 parent ff438d7 commit 1998460

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -463,8 +463,6 @@ class ThreedSurface(ParametricSurface):
463463
def func(self, x, y):
464464
return np.array([x,y,x**2 - y**2])
465465

466-
def tangentX(self, x, y):
467-
return 2*x
468466

469467
class Test(ThreeDScene):
470468

@@ -484,6 +482,12 @@ class Test(ThreeDScene):
484482
self.wait(9)
485483
```
486484

485+
Alright! Finally some 3D graphs. So, the first ThreeDSurface inherits from parametric surfaces. This will be used to define our 3D graph in terms of a mathematical equation. The **kwargs** parameter are just some tweaks that change the color of the the graph, or how much of the graph should be rendered. The method **func** defines the function. It returns the **z** given the x and y parameters (which are required for 3D graphs).
486+
487+
The ThreeDSurface is called in the Test class and is manipulated like a mobject.
488+
489+
A continuation of this tutorial will follow to explain how the camera works. For now, the camera is basically your eyes.
490+
487491
**Click for results on YouTube:**
488492

489493
[![Youtube video link](https://img.youtube.com/vi/_XMEQRshlp4/0.jpg)](https://www.youtube.com/watch?v=_XMEQRshlp4)

0 commit comments

Comments
 (0)