A community-maintained Python framework for creating mathematical animations.
Added simple R3_to_complex function
Grant Sanderson4f356d7e8f95
diff --git a/helpers.py b/helpers.pyindex 737eb2b7a..079b0b5e2 100644--- a/helpers.py+++ b/helpers.py@@ -224,6 +224,9 @@ def adjacent_pairs(objects):def complex_to_R3(complex_num):return np.array((complex_num.real, complex_num.imag, 0))+def R3_to_complex(point):+ return complex(*point[:2])+def tuplify(obj):if isinstance(obj, str):return (obj,)