mirror of
https://github.com/3b1b/manim.git
synced 2025-08-05 16:49:03 +00:00
added getter and setter for VectorizedPoint's location
This commit is contained in:
parent
1e88bf3946
commit
8e0c84946f
1 changed files with 6 additions and 0 deletions
|
@ -457,6 +457,12 @@ class VectorizedPoint(VMobject):
|
|||
def get_height(self):
|
||||
return self.artificial_height
|
||||
|
||||
def get_location(self):
|
||||
return self.get_anchors()[0]
|
||||
|
||||
def set_location(self,new_loc):
|
||||
self.set_points(np.array([new_loc]))
|
||||
|
||||
class BackgroundColoredVMobject(VMobject):
|
||||
CONFIG = {
|
||||
# Can be set to None, using set_background_array to initialize instead
|
||||
|
|
Loading…
Add table
Reference in a new issue