mirror of
https://github.com/3b1b/manim.git
synced 2025-08-01 17:29:06 +08:00
added getter and setter for VectorizedPoint's location
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user