File size: 2,147 Bytes
dc00adb
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# ComplexValueTracker

Qualified name: `manim.mobject.value\_tracker.ComplexValueTracker`

### *class* ComplexValueTracker(value=0, \*\*kwargs)

Bases: [`ValueTracker`](manim.mobject.value_tracker.ValueTracker.md#manim.mobject.value_tracker.ValueTracker)

Tracks a complex-valued parameter.

The value is internally stored as a points array [a, b, 0]. This can be accessed directly
to represent the value geometrically, see the usage example.
When the value is set through `animate`, the value will take a straight path from the
source point to the destination point.

### Examples

### Methods

| [`get_value`](#manim.mobject.value_tracker.ComplexValueTracker.get_value)   | Get the current value of this ComplexValueTracker as a complex number.   |
|-----------------------------------------------------------------------------|--------------------------------------------------------------------------|
| [`set_value`](#manim.mobject.value_tracker.ComplexValueTracker.set_value)   | Sets a new complex value to the ComplexValueTracker.                     |

### Attributes

| `animate`             | Used to animate the application of any method of `self`.   |
|-----------------------|------------------------------------------------------------|
| `animation_overrides` |                                                            |
| `depth`               | The depth of the mobject.                                  |
| `height`              | The height of the mobject.                                 |
| `width`               | The width of the mobject.                                  |
* **Parameters:**
  * **value** (*float*)
  * **kwargs** (*Any*)

#### \_original_\_init_\_(value=0, \*\*kwargs)

Initialize self.  See help(type(self)) for accurate signature.

* **Parameters:**
  * **value** (*float*)
  * **kwargs** (*Any*)
* **Return type:**
  None

#### get_value()

Get the current value of this ComplexValueTracker as a complex number.

* **Return type:**
  complex

#### set_value(value)

Sets a new complex value to the ComplexValueTracker.

* **Parameters:**
  **value** (*complex* *|* *float*)
* **Return type:**
  Self