mirror of
https://github.com/3b1b/manim.git
synced 2025-08-05 16:49:03 +00:00
Add pfp as abreviation for point_from_proportion
This commit is contained in:
parent
ab817c0962
commit
23440d020f
1 changed files with 4 additions and 0 deletions
|
@ -877,6 +877,10 @@ class Mobject(Container):
|
||||||
def point_from_proportion(self, alpha):
|
def point_from_proportion(self, alpha):
|
||||||
raise Exception("Not implemented")
|
raise Exception("Not implemented")
|
||||||
|
|
||||||
|
def pfp(self, alpha):
|
||||||
|
"""Abbreviation fo point_from_proportion"""
|
||||||
|
return self.point_from_proportion(alpha)
|
||||||
|
|
||||||
def get_pieces(self, n_pieces):
|
def get_pieces(self, n_pieces):
|
||||||
template = self.copy()
|
template = self.copy()
|
||||||
template.set_submobjects([])
|
template.set_submobjects([])
|
||||||
|
|
Loading…
Add table
Reference in a new issue