Merge pull request #473 from 3b1b/ode

Fix to Matrix
This commit is contained in:
Grant Sanderson 2019-03-13 05:21:54 -07:00 committed by GitHub
commit 3e0666aa17
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 57 additions and 1 deletions

View file

@ -0,0 +1,6 @@
# from active_projects.ode.part1 import *
OUTPUT_DIRECTORY = "ode/part1"
ALL_SCENE_CLASSES = [
]

View file

@ -0,0 +1,50 @@
from big_ol_pile_of_manim_imports import *
class Pendulum(VGroup):
CONFIG = {
"length": 3,
"gravity": 9.8,
"weight_diameter": 0.5,
"rod_style": {
"stroke_width": 2,
"stroke_color": LIGHT_GREY,
},
"weight_style": {
"stroke_width": 0,
"fill_opacity": 1,
"fill_color": LIGHT_GREY,
"sheen_direction": UL,
"sheen_factor": 0.5,
}
}
def __init__(self, **kwargs):
super().__init__(**kwargs)
self.create_rod()
def create_rod(self):
pass
def create_weight(self):
pass
def get_theta(self):
pass
def set_theta(self):
pass
def get_angular_velocity(self):
pass
def set_angular_velocity(self):
pass
def get_fixed_point(self):
pass
class PendulumTest(Scene):
def construct(self):
pass

View file

@ -99,7 +99,7 @@ class Matrix(VMobject):
return self
def add_brackets(self):
bracket_pair = TexMobject("\\big[ \\big]")
bracket_pair = TexMobject("\\big[", "\\big]")
bracket_pair.scale(2)
bracket_pair.stretch_to_fit_height(self.get_height() + 0.5)
l_bracket, r_bracket = bracket_pair.split()