Skip to content

The animation engine for agents: blazingly fast math and 3D videos with Manim's Python API, on a Rust GPU core.

Python

Add arc construction and curvature cases

apoogdk6b4d8341f10f
diff --git a/tests/integration/cases/arc_between_points_example/case.json b/tests/integration/cases/arc_between_points_example/case.json
new file mode 100644
index 00000000..cd015eb8
--- /dev/null
+++ b/tests/integration/cases/arc_between_points_example/case.json
@@ -0,0 +1,61 @@
+{
+ "source": "sha256:0be31e27c137d9c5f0a0e05c20c3d0172ba91bf407827fbc439c55e10a10e23a",
+ "size": [960, 540],
+ "fps": 10,
+ "manimgx": {
+ "duration": 1.0,
+ "frames": [
+ ["39bb80673e4f7d73", 1],
+ ["fc0eda9961c302c8", 1],
+ ["43c91970fd713e79", 1],
+ ["964d25987da0b809", 1],
+ ["94dd68bc20f630b4", 1],
+ ["60a96d8e991f4a7f", 1],
+ ["408544d73e47f9ac", 1],
+ ["0ce8312335dac22b", 1],
+ ["cde576816c0a0044", 1],
+ ["036ea840ef0a67da", 1],
+ ["18a38935bfae23fa", 1]
+ ],
+ "timeline": [
+ [0.0, 11]
+ ],
+ "id": "sha256:8f87bf1784c5b1ba458603318093add7f3bf18e6c034a8ae4a2f07fb9d286866"
+ },
+ "ce": {
+ "manim": "0.21.0",
+ "duration": 1.0,
+ "frames": [
+ ["c56060fa52a4f36c", 1],
+ ["a68e24a56e680f54", 1],
+ ["84fe724160749ec8", 1],
+ ["50f707d18768645b", 1],
+ ["c5c3a82c3b005035", 1],
+ ["948123fc986d5d1e", 1],
+ ["a2d1eedb37759f29", 1],
+ ["b20fa5223b8d5922", 1],
+ ["a3ad7e053d000c61", 1],
+ ["7d4ef0fba088d267", 1]
+ ],
+ "timeline": [
+ [0.0, 10]
+ ],
+ "id": "sha256:782eee9810b6776e22cca7444b0cb8bc30ad47b9dc4135a9317051dfb97cc9a7"
+ },
+ "comparison": {
+ "metrics": ["local_max", "mae", "rmse", "max"],
+ "pairs": [
+ [0, 0, 12.35, 0.01, 0.33, 40.0],
+ [1, 1, 12.35, 0.01, 0.33, 40.0],
+ [2, 2, 12.35, 0.01, 0.36, 48.0],
+ [3, 3, 12.35, 0.01, 0.4, 40.0],
+ [4, 4, 12.35, 0.02, 0.48, 44.0],
+ [5, 5, 12.35, 0.02, 0.57, 44.0],
+ [6, 6, 12.35, 0.02, 0.66, 44.0],
+ [7, 7, 12.35, 0.03, 0.71, 44.0],
+ [8, 8, 12.35, 0.03, 0.73, 44.0],
+ [9, 9, 12.35, 0.03, 0.74, 44.0]
+ ],
+ "unpaired": []
+ }
+}
diff --git a/tests/integration/cases/arc_between_points_example/ce.mkv.sha256 b/tests/integration/cases/arc_between_points_example/ce.mkv.sha256
new file mode 100644
index 00000000..9282e1ee
--- /dev/null
+++ b/tests/integration/cases/arc_between_points_example/ce.mkv.sha256
@@ -0,0 +1 @@
+7b6cfa5b9c3e3ec682805cbfa005a80bc85aa0f6a1bef57748265c67996e24b2 ce.mkv
diff --git a/tests/integration/cases/arc_between_points_example/manimgx.mkv.sha256 b/tests/integration/cases/arc_between_points_example/manimgx.mkv.sha256
new file mode 100644
index 00000000..82922c4d
--- /dev/null
+++ b/tests/integration/cases/arc_between_points_example/manimgx.mkv.sha256
@@ -0,0 +1 @@
+e765e6f17b46aac4f55c3233a4bd3ec6bf29b6b6b6ed197a08997e64d8df3b2b manimgx.mkv
diff --git a/tests/integration/cases/arc_between_points_example/scene.py b/tests/integration/cases/arc_between_points_example/scene.py
new file mode 100644
index 00000000..7e18e554
--- /dev/null
+++ b/tests/integration/cases/arc_between_points_example/scene.py
@@ -0,0 +1,14 @@
+# Source: manim/mobject/geometry/arc.py
+import manimgx as m
+
+
+class ArcBetweenPointsExample(m.Scene):
+ def construct(self):
+ circle = m.Circle(radius=2, stroke_color=m.GREY)
+ dot_1 = m.Dot(color=m.GREEN).move_to([2, 0, 0]).scale(0.5)
+ dot_1_text = m.Tex("(2,0)").scale(0.5).next_to(dot_1, m.RIGHT).set_color(m.BLUE)
+ dot_2 = m.Dot(color=m.GREEN).move_to([0, 2, 0]).scale(0.5)
+ dot_2_text = m.Tex("(0,2)").scale(0.5).next_to(dot_2, m.UP).set_color(m.BLUE)
+ arc = m.ArcBetweenPoints(start=2 * m.RIGHT, end=2 * m.UP, stroke_color=m.YELLOW)
+ self.add(circle, dot_1, dot_2, dot_1_text, dot_2_text)
+ self.play(m.Create(arc))
diff --git a/tests/integration/cases/arc_center_and_stop_angle/case.json b/tests/integration/cases/arc_center_and_stop_angle/case.json
new file mode 100644
index 00000000..fbb530c8
--- /dev/null
+++ b/tests/integration/cases/arc_center_and_stop_angle/case.json
@@ -0,0 +1,42 @@
+{
+ "source": "sha256:9d3c06b2ff0114c026bc2a28a70ff12ae8c8b192b05250cbdb016de60aa99f8f",
+ "size": [960, 540],
+ "fps": 10,
+ "manimgx": {
+ "duration": 1.0,
+ "frames": [
+ ["4ac4aebfd8e10df2", 11]
+ ],
+ "timeline": [
+ [0.0, 11]
+ ],
+ "id": "sha256:5b0bad42b021ee195c765beaa5cfb714927f3ca05d172edd84ef582419f07744"
+ },
+ "ce": {
+ "manim": "0.21.0",
+ "duration": 1.0,
+ "frames": [
+ ["1909a8ee496cb2a2", 10]
+ ],
+ "timeline": [
+ [0.0, 10]
+ ],
+ "id": "sha256:1ed80143b42b6d42ad50d66e61416b874e39f2948940587906e24c272434b421"
+ },
+ "comparison": {
+ "metrics": ["local_max", "mae", "rmse", "max"],
+ "pairs": [
+ [0, 0, 133.59, 0.11, 4.07, 255.0],
+ [1, 1, 133.59, 0.11, 4.07, 255.0],
+ [2, 2, 133.59, 0.11, 4.07, 255.0],
+ [3, 3, 133.59, 0.11, 4.07, 255.0],
+ [4, 4, 133.59, 0.11, 4.07, 255.0],
+ [5, 5, 133.59, 0.11, 4.07, 255.0],
+ [6, 6, 133.59, 0.11, 4.07, 255.0],
+ [7, 7, 133.59, 0.11, 4.07, 255.0],
+ [8, 8, 133.59, 0.11, 4.07, 255.0],
+ [9, 9, 133.59, 0.11, 4.07, 255.0]
+ ],
+ "unpaired": []
+ }
+}
diff --git a/tests/integration/cases/arc_center_and_stop_angle/ce.mkv.sha256 b/tests/integration/cases/arc_center_and_stop_angle/ce.mkv.sha256
new file mode 100644
index 00000000..97f9354a
--- /dev/null
+++ b/tests/integration/cases/arc_center_and_stop_angle/ce.mkv.sha256
@@ -0,0 +1 @@
+3d6b75ae02abb2abdde2eb56a2b072b0a6e7b95212c430c185496a020c5f165f ce.mkv
diff --git a/tests/integration/cases/arc_center_and_stop_angle/manimgx.mkv.sha256 b/tests/integration/cases/arc_center_and_stop_angle/manimgx.mkv.sha256
new file mode 100644
index 00000000..83a206cb
--- /dev/null
+++ b/tests/integration/cases/arc_center_and_stop_angle/manimgx.mkv.sha256
@@ -0,0 +1 @@
+fe20c95afe6a7556a0255a5280f8ea9fac3d22326c470718029975fca2f91736 manimgx.mkv
diff --git a/tests/integration/cases/arc_center_and_stop_angle/review.json b/tests/integration/cases/arc_center_and_stop_angle/review.json
new file mode 100644
index 00000000..8e12a074
--- /dev/null
+++ b/tests/integration/cases/arc_center_and_stop_angle/review.json
@@ -0,0 +1,8 @@
+{
+ "verdict": "working",
+ "note": "",
+ "source": "sha256:9d3c06b2ff0114c026bc2a28a70ff12ae8c8b192b05250cbdb016de60aa99f8f",
+ "manimgx": "sha256:5b0bad42b021ee195c765beaa5cfb714927f3ca05d172edd84ef582419f07744",
+ "ce": "sha256:1ed80143b42b6d42ad50d66e61416b874e39f2948940587906e24c272434b421",
+ "at": "2026-10-04"
+}
diff --git a/tests/integration/cases/arc_center_and_stop_angle/scene.py b/tests/integration/cases/arc_center_and_stop_angle/scene.py
new file mode 100644
index 00000000..492aa768
--- /dev/null
+++ b/tests/integration/cases/arc_center_and_stop_angle/scene.py
@@ -0,0 +1,27 @@
+# Source: manim/mobject/geometry/arc.py
+import numpy as np
+
+import manimgx as m
+
+
+class ArcCenterAndStopAngle(m.Scene):
+ def construct(self):
+ # Arc(arc_center=) places the arc at a specific center.
+ arc_kw = m.Arc(
+ radius=1.0,
+ start_angle=0,
+ angle=np.pi,
+ arc_center=np.array([-2.0, 0.0, 0.0]),
+ color=m.BLUE,
+ )
+
+ # move_arc_center_to shifts the arc afterwards.
+ arc_moved = m.Arc(radius=1.0, start_angle=0, angle=np.pi, color=m.YELLOW)
+ arc_moved.move_arc_center_to(np.array([2.0, 0.0, 0.0]))
+
+ # stop_angle returns the angle of the trailing endpoint.
+ label = m.Text(f"stop={arc_kw.stop_angle():.2f}", color=m.WHITE).scale(0.4)
+ label.next_to(arc_kw, m.DOWN)
+
+ self.add(arc_kw, arc_moved, label)
+ self.wait()
diff --git a/tests/integration/cases/arc_example/case.json b/tests/integration/cases/arc_example/case.json
new file mode 100644
index 00000000..0efc2c8c
--- /dev/null
+++ b/tests/integration/cases/arc_example/case.json
@@ -0,0 +1,42 @@
+{
+ "source": "sha256:c55669c8bbf0820044d4c76ae987a798e831f48ea4ea440fc06e4bafe78c3a99",
+ "size": [960, 540],
+ "fps": 10,
+ "manimgx": {
+ "duration": 1.0,
+ "frames": [
+ ["2c35a0b29bc32784", 11]
+ ],
+ "timeline": [
+ [0.0, 11]
+ ],
+ "id": "sha256:4e274784e3aff5c619407087a4af60505ba64e7e6e9d8c158f01a608998ebf6c"
+ },
+ "ce": {
+ "manim": "0.21.0",
+ "duration": 1.0,
+ "frames": [
+ ["35ce7cbf50d51159", 10]
+ ],
+ "timeline": [
+ [0.0, 10]
+ ],
+ "id": "sha256:ece66a59bcbe5e36099ef57e26a732282f7cd7da6bd746c585580e6483d09c26"
+ },
+ "comparison": {
+ "metrics": ["local_max", "mae", "rmse", "max"],
+ "pairs": [
+ [0, 0, 0.86, 0.0, 0.06, 12.0],
+ [1, 1, 0.86, 0.0, 0.06, 12.0],
+ [2, 2, 0.86, 0.0, 0.06, 12.0],
+ [3, 3, 0.86, 0.0, 0.06, 12.0],
+ [4, 4, 0.86, 0.0, 0.06, 12.0],
+ [5, 5, 0.86, 0.0, 0.06, 12.0],
+ [6, 6, 0.86, 0.0, 0.06, 12.0],
+ [7, 7, 0.86, 0.0, 0.06, 12.0],
+ [8, 8, 0.86, 0.0, 0.06, 12.0],
+ [9, 9, 0.86, 0.0, 0.06, 12.0]
+ ],
+ "unpaired": []
+ }
+}
diff --git a/tests/integration/cases/arc_example/ce.mkv.sha256 b/tests/integration/cases/arc_example/ce.mkv.sha256
new file mode 100644
index 00000000..db3e7952
--- /dev/null
+++ b/tests/integration/cases/arc_example/ce.mkv.sha256
@@ -0,0 +1 @@
+41d0c6530a72a24ff3aebe42789f9ab93b900ec0cb2e9ae314cfb4502cf2b63c ce.mkv
diff --git a/tests/integration/cases/arc_example/manimgx.mkv.sha256 b/tests/integration/cases/arc_example/manimgx.mkv.sha256
new file mode 100644
index 00000000..28ea8ea5
--- /dev/null
+++ b/tests/integration/cases/arc_example/manimgx.mkv.sha256
@@ -0,0 +1 @@
+9ff1f04de64250024df929e67a2223f7d7e45e1af1c8d2689d4efb5d7f0aede3 manimgx.mkv
diff --git a/tests/integration/cases/arc_example/scene.py b/tests/integration/cases/arc_example/scene.py
new file mode 100644
index 00000000..964124d1
--- /dev/null
+++ b/tests/integration/cases/arc_example/scene.py
@@ -0,0 +1,8 @@
+# Source: manim/mobject/geometry/arc.py
+import manimgx as m
+
+
+class ArcExample(m.Scene):
+ def construct(self):
+ self.add(m.Arc(angle=m.PI))
+ self.wait()
diff --git a/tests/integration/cases/arc_polygon_example/case.json b/tests/integration/cases/arc_polygon_example/case.json
new file mode 100644
index 00000000..a0add302
--- /dev/null
+++ b/tests/integration/cases/arc_polygon_example/case.json
@@ -0,0 +1,83 @@
+{
+ "source": "sha256:95a3e935c0b676958bb71df349f1e494f57153dcbb425af57b88dad44fe09c5a",
+ "size": [960, 540],
+ "fps": 10,
+ "manimgx": {
+ "duration": 3.0,
+ "frames": [
+ ["2e842802bccef91c", 1],
+ ["339b879fb51304b9", 1],
+ ["558cfda6230253ae", 1],
+ ["559bf62b0a470b2e", 1],
+ ["f8552c68f6954abd", 1],
+ ["4ffb83104bcc6f67", 1],
+ ["356e6707b1d9638d", 1],
+ ["2134532c4c3b54d1", 1],
+ ["1b72552ddd41e6f4", 1],
+ ["37d3d39e1c40ad56", 1],
+ ["fe3ad859f6c9eeec", 21]
+ ],
+ "timeline": [
+ [0.0, 31]
+ ],
+ "id": "sha256:c3e5b2d30d115a0b8ea880e831bca8ca3f46f33bcfc9a8a2f96f8ad352dd3247"
+ },
+ "ce": {
+ "manim": "0.21.0",
+ "duration": 3.0,
+ "frames": [
+ ["2e842802bccef91c", 1],
+ ["2b2d0c305bce39b1", 1],
+ ["887a6e3dfe83c137", 1],
+ ["b28fbfc73fc6e1f5", 1],
+ ["19c938b05b3280c2", 1],
+ ["09b2cc92e4d2cdae", 1],
+ ["c7b6738abf80c527", 1],
+ ["80b41a6a4fa35a7c", 1],
+ ["33bc756c2adc4540", 1],
+ ["3c8ed0dc80316936", 1],
+ ["ec1dfceebff1aab9", 20]
+ ],
+ "timeline": [
+ [0.0, 10],
+ [1.0, 20]
+ ],
+ "id": "sha256:b221a18fdcd852c7708c09c10006959fbde3546dded219541b737b4aeb587c9d"
+ },
+ "comparison": {
+ "metrics": ["local_max", "mae", "rmse", "max"],
+ "pairs": [
+ [0, 0, 0.0, 0.0, 0.0, 0.0],
+ [1, 1, 1.06, 0.02, 0.13, 2.0],
+ [2, 2, 1.02, 0.01, 0.1, 2.0],
+ [3, 3, 1.18, 0.02, 0.13, 4.0],
+ [4, 4, 1.9, 0.01, 0.13, 9.0],
+ [5, 5, 2.47, 0.01, 0.16, 16.0],
+ [6, 6, 3.08, 0.01, 0.2, 24.0],
+ [7, 7, 3.06, 0.01, 0.23, 29.0],
+ [8, 8, 3.35, 0.01, 0.25, 31.0],
+ [9, 9, 3.63, 0.01, 0.25, 31.0],
+ [10, 10, 3.29, 0.01, 0.26, 33.0],
+ [11, 11, 3.29, 0.01, 0.26, 33.0],
+ [12, 12, 3.29, 0.01, 0.26, 33.0],
+ [13, 13, 3.29, 0.01, 0.26, 33.0],
+ [14, 14, 3.29, 0.01, 0.26, 33.0],
+ [15, 15, 3.29, 0.01, 0.26, 33.0],
+ [16, 16, 3.29, 0.01, 0.26, 33.0],
+ [17, 17, 3.29, 0.01, 0.26, 33.0],
+ [18, 18, 3.29, 0.01, 0.26, 33.0],
+ [19, 19, 3.29, 0.01, 0.26, 33.0],
+ [20, 20, 3.29, 0.01, 0.26, 33.0],
+ [21, 21, 3.29, 0.01, 0.26, 33.0],
+ [22, 22, 3.29, 0.01, 0.26, 33.0],
+ [23, 23, 3.29, 0.01, 0.26, 33.0],
+ [24, 24, 3.29, 0.01, 0.26, 33.0],
+ [25, 25, 3.29, 0.01, 0.26, 33.0],
+ [26, 26, 3.29, 0.01, 0.26, 33.0],
+ [27, 27, 3.29, 0.01, 0.26, 33.0],
+ [28, 28, 3.29, 0.01, 0.26, 33.0],
+ [29, 29, 3.29, 0.01, 0.26, 33.0]
+ ],
+ "unpaired": []
+ }
+}
diff --git a/tests/integration/cases/arc_polygon_example/ce.mkv.sha256 b/tests/integration/cases/arc_polygon_example/ce.mkv.sha256
new file mode 100644
index 00000000..1b42d387
--- /dev/null
+++ b/tests/integration/cases/arc_polygon_example/ce.mkv.sha256
@@ -0,0 +1 @@
+4cf93c0e42f7bcaf515158c384bf832acf8ec075a5cb114fd68602f53ee5a46c ce.mkv
diff --git a/tests/integration/cases/arc_polygon_example/manimgx.mkv.sha256 b/tests/integration/cases/arc_polygon_example/manimgx.mkv.sha256
new file mode 100644
index 00000000..06a70c31
--- /dev/null
+++ b/tests/integration/cases/arc_polygon_example/manimgx.mkv.sha256
@@ -0,0 +1 @@
+c10036e79c362cceb83b66bc0967f8e1e2b163c631ff4e45702df2ff129db320 manimgx.mkv
diff --git a/tests/integration/cases/arc_polygon_example/scene.py b/tests/integration/cases/arc_polygon_example/scene.py
new file mode 100644
index 00000000..e3ff27e7
--- /dev/null
+++ b/tests/integration/cases/arc_polygon_example/scene.py
@@ -0,0 +1,47 @@
+# Source: manim/mobject/geometry/arc.py
+from typing import TypedDict
+
+import numpy as np
+
+import manimgx as m
+
+
+class _ArcConf(TypedDict, total=False):
+ stroke_width: float
+
+
+class _PolyConf(TypedDict, total=False):
+ stroke_width: float
+ stroke_color: object
+ fill_opacity: float
+ color: object
+
+
+class ArcPolygonExample(m.Scene):
+ def construct(self):
+ arc_conf: _ArcConf = {"stroke_width": 0}
+ stroke_color = m.BLUE
+ color = m.PURPLE
+ poly_conf: _PolyConf = {
+ "stroke_width": 10,
+ "stroke_color": stroke_color,
+ "fill_opacity": 1,
+ "color": color,
+ }
+ a = (-1.0, 0.0, 0.0)
+ b = (1.0, 0.0, 0.0)
+ c = (0.0, float(np.sqrt(3)), 0.0)
+ arc0 = m.ArcBetweenPoints(a, b, radius=2, **arc_conf)
+ arc1 = m.ArcBetweenPoints(b, c, radius=2, **arc_conf)
+ arc2 = m.ArcBetweenPoints(c, a, radius=2, **arc_conf)
+ reuleaux_tri = m.ArcPolygonFromArcs(
+ arc0,
+ arc1,
+ arc2,
+ stroke_width=poly_conf["stroke_width"],
+ stroke_color=stroke_color,
+ fill_opacity=poly_conf["fill_opacity"],
+ color=color,
+ )
+ self.play(m.FadeIn(reuleaux_tri))
+ self.wait(2)
diff --git a/tests/integration/cases/arc_polygon_example2/case.json b/tests/integration/cases/arc_polygon_example2/case.json
new file mode 100644
index 00000000..94ae52e8
--- /dev/null
+++ b/tests/integration/cases/arc_polygon_example2/case.json
@@ -0,0 +1,83 @@
+{
+ "source": "sha256:79abb2e5c41d3beef1bf1f51b5808885218e91710d6888ceb49a39dca21c5bcb",
+ "size": [960, 540],
+ "fps": 10,
+ "manimgx": {
+ "duration": 3.0,
+ "frames": [
+ ["2e842802bccef91c", 1],
+ ["9f59216738c82749", 1],
+ ["298233f7a595c5b2", 1],
+ ["4e48fa6a54580db5", 1],
+ ["59f95ec5533770d5", 1],
+ ["1da7f68d88b85e04", 1],
+ ["21fd67237c1ecff8", 1],
+ ["eb94302d256e412d", 1],
+ ["0396a4a7c1ddc687", 1],
+ ["0aaf3f64cf46103d", 1],
+ ["461f0297b6d5196e", 21]
+ ],
+ "timeline": [
+ [0.0, 31]
+ ],
+ "id": "sha256:7ec4171145566c9c582d1230e286a40ac4ec8d4e7dac9fcba3557b18a9407d8f"
+ },
+ "ce": {
+ "manim": "0.21.0",
+ "duration": 3.0,
+ "frames": [
+ ["2e842802bccef91c", 1],
+ ["2be5696027644318", 1],
+ ["91ba9f805a544308", 1],
+ ["9685afa56f506f73", 1],
+ ["4922da8f5a865148", 1],
+ ["051e3135ea667af2", 1],
+ ["c17bd9125b7c05a2", 1],
+ ["fde93799a28e9eea", 1],
+ ["65580a79f1fdb8d7", 1],
+ ["2befaf704ced0d68", 1],
+ ["701590c491fd4fdf", 20]
+ ],
+ "timeline": [
+ [0.0, 10],
+ [1.0, 20]
+ ],
+ "id": "sha256:08568b52c510e1b987b760287bb730903b632cb1300ce945c9a301865e6f8f6b"
+ },
+ "comparison": {
+ "metrics": ["local_max", "mae", "rmse", "max"],
+ "pairs": [
+ [0, 0, 0.0, 0.0, 0.0, 0.0],
+ [1, 1, 2.06, 0.01, 0.17, 4.0],
+ [2, 2, 5.69, 0.02, 0.46, 12.0],
+ [3, 3, 13.98, 0.06, 1.15, 29.0],
+ [4, 4, 27.27, 0.12, 2.23, 59.0],
+ [5, 5, 38.41, 0.16, 2.99, 103.0],
+ [6, 6, 39.76, 0.14, 2.85, 151.0],
+ [7, 7, 36.27, 0.11, 2.49, 183.0],
+ [8, 8, 33.76, 0.09, 2.35, 198.0],
+ [9, 9, 32.43, 0.08, 2.31, 204.0],
+ [10, 10, 31.9, 0.08, 2.31, 206.0],
+ [11, 11, 31.9, 0.08, 2.31, 206.0],
+ [12, 12, 31.9, 0.08, 2.31, 206.0],
+ [13, 13, 31.9, 0.08, 2.31, 206.0],
+ [14, 14, 31.9, 0.08, 2.31, 206.0],
+ [15, 15, 31.9, 0.08, 2.31, 206.0],
+ [16, 16, 31.9, 0.08, 2.31, 206.0],
+ [17, 17, 31.9, 0.08, 2.31, 206.0],
+ [18, 18, 31.9, 0.08, 2.31, 206.0],
+ [19, 19, 31.9, 0.08, 2.31, 206.0],
+ [20, 20, 31.9, 0.08, 2.31, 206.0],
+ [21, 21, 31.9, 0.08, 2.31, 206.0],
+ [22, 22, 31.9, 0.08, 2.31, 206.0],
+ [23, 23, 31.9, 0.08, 2.31, 206.0],
+ [24, 24, 31.9, 0.08, 2.31, 206.0],
+ [25, 25, 31.9, 0.08, 2.31, 206.0],
+ [26, 26, 31.9, 0.08, 2.31, 206.0],
+ [27, 27, 31.9, 0.08, 2.31, 206.0],
+ [28, 28, 31.9, 0.08, 2.31, 206.0],
+ [29, 29, 31.9, 0.08, 2.31, 206.0]
+ ],
+ "unpaired": []
+ }
+}
diff --git a/tests/integration/cases/arc_polygon_example2/ce.mkv.sha256 b/tests/integration/cases/arc_polygon_example2/ce.mkv.sha256
new file mode 100644
index 00000000..81f2c6fb
--- /dev/null
+++ b/tests/integration/cases/arc_polygon_example2/ce.mkv.sha256
@@ -0,0 +1 @@
+d665b8bdf7f64ce02a3b8b7388506ac090a2dcc8614e14317f2d39ef0ce9c367 ce.mkv
diff --git a/tests/integration/cases/arc_polygon_example2/manimgx.mkv.sha256 b/tests/integration/cases/arc_polygon_example2/manimgx.mkv.sha256
new file mode 100644
index 00000000..2c5b3665
--- /dev/null
+++ b/tests/integration/cases/arc_polygon_example2/manimgx.mkv.sha256
@@ -0,0 +1 @@
+b44ee6fff7bed4a56e51f9acb449b992044dcb70a9ce6ca96263e3db9f7fbf87 manimgx.mkv
diff --git a/tests/integration/cases/arc_polygon_example2/review.json b/tests/integration/cases/arc_polygon_example2/review.json
new file mode 100644
index 00000000..dabcaaa3
--- /dev/null
+++ b/tests/integration/cases/arc_polygon_example2/review.json
@@ -0,0 +1,8 @@
+{
+ "verdict": "working",
+ "note": "",
+ "source": "sha256:79abb2e5c41d3beef1bf1f51b5808885218e91710d6888ceb49a39dca21c5bcb",
+ "manimgx": "sha256:7ec4171145566c9c582d1230e286a40ac4ec8d4e7dac9fcba3557b18a9407d8f",
+ "ce": "sha256:08568b52c510e1b987b760287bb730903b632cb1300ce945c9a301865e6f8f6b",
+ "at": "2026-10-04"
+}
diff --git a/tests/integration/cases/arc_polygon_example2/scene.py b/tests/integration/cases/arc_polygon_example2/scene.py
new file mode 100644
index 00000000..386a67e5
--- /dev/null
+++ b/tests/integration/cases/arc_polygon_example2/scene.py
@@ -0,0 +1,56 @@
+# Source: manim/mobject/geometry/arc.py
+from typing import TypedDict
+
+import numpy as np
+
+import manimgx as m
+
+
+class _ArcConf(TypedDict, total=False):
+ stroke_width: float
+ stroke_color: object
+ fill_opacity: float
+ color: object
+
+
+class _PolyConf(TypedDict, total=False):
+ color: object
+
+
+class ArcPolygonExample2(m.Scene):
+ def construct(self):
+ stroke_color = m.BLUE
+ color = m.GREEN
+ arc_conf: _ArcConf = {
+ "stroke_width": 3,
+ "stroke_color": stroke_color,
+ "fill_opacity": 0.5,
+ "color": color,
+ }
+ poly_color = None
+ _poly_conf: _PolyConf = {"color": poly_color}
+ a = (-1.0, 0.0, 0.0)
+ b = (1.0, 0.0, 0.0)
+ c = (0.0, float(np.sqrt(3)), 0.0)
+ arc0 = m.ArcBetweenPoints(
+ a,
+ b,
+ radius=2,
+ stroke_width=arc_conf["stroke_width"],
+ stroke_color=stroke_color,
+ fill_opacity=arc_conf["fill_opacity"],
+ color=color,
+ )
+ arc1 = m.ArcBetweenPoints(
+ b,
+ c,
+ radius=2,
+ stroke_width=arc_conf["stroke_width"],
+ stroke_color=stroke_color,
+ fill_opacity=arc_conf["fill_opacity"],
+ color=color,
+ )
+ arc2 = m.ArcBetweenPoints(c, a, radius=2, stroke_color=m.RED)
+ reuleaux_tri = m.ArcPolygonFromArcs(arc0, arc1, arc2, color=poly_color)
+ self.play(m.FadeIn(reuleaux_tri))
+ self.wait(2)
diff --git a/tests/integration/cases/arc_shape_iris_2/case.json b/tests/integration/cases/arc_shape_iris_2/case.json
new file mode 100644
index 00000000..54cce755
--- /dev/null
+++ b/tests/integration/cases/arc_shape_iris_2/case.json
@@ -0,0 +1,42 @@
+{
+ "source": "sha256:441430cce45774d5990cba207d33eefa5649b51a72ba7dc09d8cd1890ad54192",
+ "size": [960, 540],
+ "fps": 10,
+ "manimgx": {
+ "duration": 1.0,
+ "frames": [
+ ["3f28597364263ef1", 11]
+ ],
+ "timeline": [
+ [0.0, 11]
+ ],
+ "id": "sha256:0b0d01dca604a627a97292438bbe9eb954d73867f92d34969662ffc364acbe37"
+ },
+ "ce": {
+ "manim": "0.21.0",
+ "duration": 1.0,
+ "frames": [
+ ["6591fe6111696fe5", 10]
+ ],
+ "timeline": [
+ [0.0, 10]
+ ],
+ "id": "sha256:99a39438105b55043aac7b88459008472df0ee70aea096052c81d5e2aa257d61"
+ },
+ "comparison": {
+ "metrics": ["local_max", "mae", "rmse", "max"],
+ "pairs": [
+ [0, 0, 7.82, 0.16, 2.31, 64.0],
+ [1, 1, 7.82, 0.16, 2.31, 64.0],
+ [2, 2, 7.82, 0.16, 2.31, 64.0],
+ [3, 3, 7.82, 0.16, 2.31, 64.0],
+ [4, 4, 7.82, 0.16, 2.31, 64.0],
+ [5, 5, 7.82, 0.16, 2.31, 64.0],
+ [6, 6, 7.82, 0.16, 2.31, 64.0],
+ [7, 7, 7.82, 0.16, 2.31, 64.0],
+ [8, 8, 7.82, 0.16, 2.31, 64.0],
+ [9, 9, 7.82, 0.16, 2.31, 64.0]
+ ],
+ "unpaired": []
+ }
+}
diff --git a/tests/integration/cases/arc_shape_iris_2/ce.mkv.sha256 b/tests/integration/cases/arc_shape_iris_2/ce.mkv.sha256
new file mode 100644
index 00000000..da530007
--- /dev/null
+++ b/tests/integration/cases/arc_shape_iris_2/ce.mkv.sha256
@@ -0,0 +1 @@
+ea3cf0ca5e81c7f039196d24cf1dbe9327f69f43ba57ddcbbb1b659b28477b52 ce.mkv
diff --git a/tests/integration/cases/arc_shape_iris_2/manimgx.mkv.sha256 b/tests/integration/cases/arc_shape_iris_2/manimgx.mkv.sha256
new file mode 100644
index 00000000..90e86f73
--- /dev/null
+++ b/tests/integration/cases/arc_shape_iris_2/manimgx.mkv.sha256
@@ -0,0 +1 @@
+9459b574e808a78f498e71d24c0d40cdb5788c533db2740299c192b8388278ec manimgx.mkv
diff --git a/tests/integration/cases/arc_shape_iris_2/scene.py b/tests/integration/cases/arc_shape_iris_2/scene.py
new file mode 100644
index 00000000..59ecb16b
--- /dev/null
+++ b/tests/integration/cases/arc_shape_iris_2/scene.py
@@ -0,0 +1,28 @@
+# Source: manim/mobject/types/vectorized_mobject.py
+import manimgx as m
+
+
+class ArcShapeIris(m.Scene):
+ def construct(self):
+ colors = [
+ m.DARK_BROWN,
+ m.BLUE_E,
+ m.BLUE_D,
+ m.BLUE_A,
+ m.TEAL_B,
+ m.GREEN_B,
+ m.YELLOW_E,
+ ]
+ radius = [1 + rad * 0.1 for rad in range(len(colors))]
+
+ circles_group = m.VGroup()
+
+ # zip(radius, color) makes the iterator [(radius[i], color[i]) for i in range(radius)]
+ circles_group.add(
+ *[
+ m.Circle(radius=rad, stroke_width=10, color=col)
+ for rad, col in zip(radius, colors)
+ ]
+ )
+ self.add(circles_group)
+ self.wait()
diff --git a/tests/integration/cases/bezier_spline_example/case.json b/tests/integration/cases/bezier_spline_example/case.json
new file mode 100644
index 00000000..70a8d544
--- /dev/null
+++ b/tests/integration/cases/bezier_spline_example/case.json
@@ -0,0 +1,33 @@
+{
+ "source": "sha256:adfcafbbfe075c3d9ded45461ad710523a3698f6012ce23108f356962a5cc428",
+ "size": [960, 540],
+ "fps": 10,
+ "manimgx": {
+ "duration": 0.0,
+ "frames": [
+ ["0af7b015c8e8156a", 1]
+ ],
+ "timeline": [
+ [0.0, 1]
+ ],
+ "id": "sha256:ceef3d40551fa824e7360f0891d6f48431f22af8971a03c1f262db15571a9cd8"
+ },
+ "ce": {
+ "manim": "0.21.0",
+ "duration": 0.0,
+ "frames": [
+ ["5407906d3196c717", 1]
+ ],
+ "timeline": [
+ [0.0, 1]
+ ],
+ "id": "sha256:0230adeadb903eea28d055e917b540d127d01f8340a311bcb88908fa43ff3ca0"
+ },
+ "comparison": {
+ "metrics": ["local_max", "mae", "rmse", "max"],
+ "pairs": [
+ [0, 0, 3.29, 0.01, 0.2, 18.0]
+ ],
+ "unpaired": []
+ }
+}
diff --git a/tests/integration/cases/bezier_spline_example/ce.mkv.sha256 b/tests/integration/cases/bezier_spline_example/ce.mkv.sha256
new file mode 100644
index 00000000..07b38082
--- /dev/null
+++ b/tests/integration/cases/bezier_spline_example/ce.mkv.sha256
@@ -0,0 +1 @@
+40ce396c39dbf24256c5d2b70c840e0ffa5c25f3f3b47dcecf693e2da716c6d8 ce.mkv
diff --git a/tests/integration/cases/bezier_spline_example/manimgx.mkv.sha256 b/tests/integration/cases/bezier_spline_example/manimgx.mkv.sha256
new file mode 100644
index 00000000..2fff52ca
--- /dev/null
+++ b/tests/integration/cases/bezier_spline_example/manimgx.mkv.sha256
@@ -0,0 +1 @@
+1d70b548008ec186bfa5f6d24b807397c803e3b9d1c0b6dc157b61b1d3d92a7a manimgx.mkv
diff --git a/tests/integration/cases/bezier_spline_example/scene.py b/tests/integration/cases/bezier_spline_example/scene.py
new file mode 100644
index 00000000..eebc42b7
--- /dev/null
+++ b/tests/integration/cases/bezier_spline_example/scene.py
@@ -0,0 +1,18 @@
+# Source: manim/mobject/geometry/arc.py
+import numpy as np
+
+import manimgx as m
+
+
+class BezierSplineExample(m.Scene):
+ def construct(self):
+ p1 = np.array([-3, 1, 0])
+ p1b = p1 + [1, 0, 0]
+ d1 = m.Dot(point=p1).set_color(m.BLUE)
+ l1 = m.Line(p1, p1b)
+ p2 = np.array([3, -1, 0])
+ p2b = p2 - [1, 0, 0]
+ d2 = m.Dot(point=p2).set_color(m.RED)
+ l2 = m.Line(p2, p2b)
+ bezier = m.CubicBezier(p1b, p1b + 3 * m.RIGHT, p2b - 3 * m.RIGHT, p2b)
+ self.add(l1, d1, l2, d2, bezier)
diff --git a/tests/integration/cases/right_arc_angle_example/case.json b/tests/integration/cases/right_arc_angle_example/case.json
new file mode 100644
index 00000000..762873d6
--- /dev/null
+++ b/tests/integration/cases/right_arc_angle_example/case.json
@@ -0,0 +1,42 @@
+{
+ "source": "sha256:d30b3405257d1ff413ea74336138a28ec4d7d34e0d98dbaaa1c3b8808e05c9f2",
+ "size": [960, 540],
+ "fps": 10,
+ "manimgx": {
+ "duration": 1.0,
+ "frames": [
+ ["d8c80d6ea9ee9f13", 11]
+ ],
+ "timeline": [
+ [0.0, 11]
+ ],
+ "id": "sha256:c91a08273847b7b3cc498927e00698c57c604d929f0ba2f14bfdcfbea3243fb7"
+ },
+ "ce": {
+ "manim": "0.21.0",
+ "duration": 1.0,
+ "frames": [
+ ["541cfd1d1e0ec8fb", 10]
+ ],
+ "timeline": [
+ [0.0, 10]
+ ],
+ "id": "sha256:8dceac947ae3be7b7671d9ab773e31e56d4445f26526df45ac58637d7889acae"
+ },
+ "comparison": {
+ "metrics": ["local_max", "mae", "rmse", "max"],
+ "pairs": [
+ [0, 0, 3.49, 0.01, 0.25, 27.0],
+ [1, 1, 3.49, 0.01, 0.25, 27.0],
+ [2, 2, 3.49, 0.01, 0.25, 27.0],
+ [3, 3, 3.49, 0.01, 0.25, 27.0],
+ [4, 4, 3.49, 0.01, 0.25, 27.0],
+ [5, 5, 3.49, 0.01, 0.25, 27.0],
+ [6, 6, 3.49, 0.01, 0.25, 27.0],
+ [7, 7, 3.49, 0.01, 0.25, 27.0],
+ [8, 8, 3.49, 0.01, 0.25, 27.0],
+ [9, 9, 3.49, 0.01, 0.25, 27.0]
+ ],
+ "unpaired": []
+ }
+}
diff --git a/tests/integration/cases/right_arc_angle_example/ce.mkv.sha256 b/tests/integration/cases/right_arc_angle_example/ce.mkv.sha256
new file mode 100644
index 00000000..03ac85ab
--- /dev/null
+++ b/tests/integration/cases/right_arc_angle_example/ce.mkv.sha256
@@ -0,0 +1 @@
+ae41cd15e9d2c0d5e6503bce44868fb429faf9dba054603aa8a38eb9d43e9989 ce.mkv
diff --git a/tests/integration/cases/right_arc_angle_example/manimgx.mkv.sha256 b/tests/integration/cases/right_arc_angle_example/manimgx.mkv.sha256
new file mode 100644
index 00000000..c84a32d1
--- /dev/null
+++ b/tests/integration/cases/right_arc_angle_example/manimgx.mkv.sha256
@@ -0,0 +1 @@
+d17ccf8e8a2ff3c14f00880fdd0febed375fabf0672d4e93bf7b4f75d7bcb323 manimgx.mkv
diff --git a/tests/integration/cases/right_arc_angle_example/scene.py b/tests/integration/cases/right_arc_angle_example/scene.py
new file mode 100644
index 00000000..ec49bf4e
--- /dev/null
+++ b/tests/integration/cases/right_arc_angle_example/scene.py
@@ -0,0 +1,47 @@
+# Source: manim/mobject/geometry/line.py
+import manimgx as m
+
+
+class RightArcAngleExample(m.Scene):
+ def construct(self):
+ line1 = m.Line(m.LEFT, m.RIGHT)
+ line2 = m.Line(m.DOWN, m.UP)
+ rightarcangles = [
+ m.Angle(line1, line2, dot=True),
+ m.Angle(
+ line1,
+ line2,
+ radius=0.4,
+ quadrant=(1, -1),
+ dot=True,
+ other_angle=True,
+ ),
+ m.Angle(
+ line1,
+ line2,
+ radius=0.5,
+ quadrant=(-1, 1),
+ stroke_width=8,
+ dot=True,
+ dot_color=m.YELLOW,
+ dot_radius=0.04,
+ other_angle=True,
+ ),
+ m.Angle(
+ line1,
+ line2,
+ radius=0.7,
+ quadrant=(-1, -1),
+ color=m.RED,
+ dot=True,
+ dot_color=m.GREEN,
+ dot_radius=0.08,
+ ),
+ ]
+ plots = m.VGroup()
+ for angle in rightarcangles:
+ plot = m.VGroup(line1.copy(), line2.copy(), angle)
+ plots.add(plot)
+ plots.arrange(buff=1.5)
+ self.add(plots)
+ self.wait()
diff --git a/tests/integration/cases/several_arc_polygons/case.json b/tests/integration/cases/several_arc_polygons/case.json
new file mode 100644
index 00000000..166d9a71
--- /dev/null
+++ b/tests/integration/cases/several_arc_polygons/case.json
@@ -0,0 +1,73 @@
+{
+ "source": "sha256:2e53b5f409a7bc5303674ac4ddff34fd3411323208fd1af3b60379bb838a9dd5",
+ "size": [960, 540],
+ "fps": 10,
+ "manimgx": {
+ "duration": 2.0,
+ "frames": [
+ ["2e842802bccef91c", 1],
+ ["5a9781b1db715f65", 1],
+ ["1264d324fbeee7ea", 1],
+ ["2a60b3d70204a4fa", 1],
+ ["9ba4be95b43f7d04", 1],
+ ["0d983fb169000a53", 1],
+ ["303e7edcaf1ebb69", 1],
+ ["5cfb2eae1796294c", 1],
+ ["fdb1d1da19c18504", 1],
+ ["ddf33b3b297d114b", 1],
+ ["1d8867f3449b0453", 11]
+ ],
+ "timeline": [
+ [0.0, 21]
+ ],
+ "id": "sha256:1587c77d0294edbc6e7a59494ef4ef5e36c4244dd4ae6efb766dfa55612a4a5b"
+ },
+ "ce": {
+ "manim": "0.21.0",
+ "duration": 2.0,
+ "frames": [
+ ["2e842802bccef91c", 1],
+ ["82a1757f33e74466", 1],
+ ["81acbded2e9db914", 1],
+ ["51be979821a63d02", 1],
+ ["ba0fa0904dc8b8a1", 1],
+ ["4e5b60300adb6a91", 1],
+ ["ede049297989fce2", 1],
+ ["b072589c489db7f4", 1],
+ ["9e824273e6f846c9", 1],
+ ["fad5fa5bf6300523", 1],
+ ["368b84cd29dfaeb5", 10]
+ ],
+ "timeline": [
+ [0.0, 10],
+ [1.0, 10]
+ ],
+ "id": "sha256:bd02f245dcde2b7c87189301a9385fc348bb3dbdb773084375af3501991d4588"
+ },
+ "comparison": {
+ "metrics": ["local_max", "mae", "rmse", "max"],
+ "pairs": [
+ [0, 0, 0.0, 0.0, 0.0, 0.0],
+ [1, 1, 252.0, 0.4, 8.36, 255.0],
+ [2, 2, 49.41, 0.1, 2.02, 255.0],
+ [3, 3, 12.86, 0.09, 1.29, 93.0],
+ [4, 4, 17.14, 0.13, 2.0, 105.0],
+ [5, 5, 17.14, 0.14, 2.21, 105.0],
+ [6, 6, 17.14, 0.16, 2.48, 105.0],
+ [7, 7, 17.14, 0.22, 3.05, 105.0],
+ [8, 8, 17.14, 0.22, 3.09, 105.0],
+ [9, 9, 17.14, 0.25, 3.5, 105.0],
+ [10, 10, 17.14, 0.27, 3.63, 105.0],
+ [11, 11, 17.14, 0.27, 3.63, 105.0],
+ [12, 12, 17.14, 0.27, 3.63, 105.0],
+ [13, 13, 17.14, 0.27, 3.63, 105.0],
+ [14, 14, 17.14, 0.27, 3.63, 105.0],
+ [15, 15, 17.14, 0.27, 3.63, 105.0],
+ [16, 16, 17.14, 0.27, 3.63, 105.0],
+ [17, 17, 17.14, 0.27, 3.63, 105.0],
+ [18, 18, 17.14, 0.27, 3.63, 105.0],
+ [19, 19, 17.14, 0.27, 3.63, 105.0]
+ ],
+ "unpaired": []
+ }
+}
diff --git a/tests/integration/cases/several_arc_polygons/ce.mkv.sha256 b/tests/integration/cases/several_arc_polygons/ce.mkv.sha256
new file mode 100644
index 00000000..6e54bb74
--- /dev/null
+++ b/tests/integration/cases/several_arc_polygons/ce.mkv.sha256
@@ -0,0 +1 @@
+24bff0c23aadca1e5e10451293a3a807556be469d3c4deb45d898f9fb4066007 ce.mkv
diff --git a/tests/integration/cases/several_arc_polygons/manimgx.mkv.sha256 b/tests/integration/cases/several_arc_polygons/manimgx.mkv.sha256
new file mode 100644
index 00000000..131e8f13
--- /dev/null
+++ b/tests/integration/cases/several_arc_polygons/manimgx.mkv.sha256
@@ -0,0 +1 @@
+7d904596dfa216f541198de900fe00a6030beb3e81fa1d7ddd35e9e43535f802 manimgx.mkv
diff --git a/tests/integration/cases/several_arc_polygons/review.json b/tests/integration/cases/several_arc_polygons/review.json
new file mode 100644
index 00000000..21b6df93
--- /dev/null
+++ b/tests/integration/cases/several_arc_polygons/review.json
@@ -0,0 +1,8 @@
+{
+ "verdict": "working",
+ "note": "",
+ "source": "sha256:2e53b5f409a7bc5303674ac4ddff34fd3411323208fd1af3b60379bb838a9dd5",
+ "manimgx": "sha256:1587c77d0294edbc6e7a59494ef4ef5e36c4244dd4ae6efb766dfa55612a4a5b",
+ "ce": "sha256:bd02f245dcde2b7c87189301a9385fc348bb3dbdb773084375af3501991d4588",
+ "at": "2026-10-04"
+}
diff --git a/tests/integration/cases/several_arc_polygons/scene.py b/tests/integration/cases/several_arc_polygons/scene.py
new file mode 100644
index 00000000..8aa46094
--- /dev/null
+++ b/tests/integration/cases/several_arc_polygons/scene.py
@@ -0,0 +1,27 @@
+# Source: manim/mobject/geometry/arc.py
+import manimgx as m
+
+
+class SeveralArcPolygons(m.Scene):
+ def construct(self):
+ a = [0, 0, 0]
+ b = [2, 0, 0]
+ c = [0, 2, 0]
+ ap1 = m.ArcPolygon(a, b, c, radius=2)
+ ap2 = m.ArcPolygon(a, b, c, angle=45 * m.DEGREES)
+ ap3 = m.ArcPolygon(a, b, c, arc_config={"radius": 1.7, "color": m.RED})
+ ap4 = m.ArcPolygon(
+ a,
+ b,
+ c,
+ color=m.RED,
+ fill_opacity=1,
+ arc_config=[
+ {"radius": 1.7, "color": m.RED},
+ {"angle": 20 * m.DEGREES, "color": m.BLUE},
+ {"radius": 1},
+ ],
+ )
+ ap_group = m.VGroup(ap1, ap2, ap3, ap4).arrange()
+ self.play(*[m.Create(ap) for ap in [ap1, ap2, ap3, ap4]])
+ self.wait()
diff --git a/tests/integration/cases/tangent_line_example/case.json b/tests/integration/cases/tangent_line_example/case.json
new file mode 100644
index 00000000..9140538a
--- /dev/null
+++ b/tests/integration/cases/tangent_line_example/case.json
@@ -0,0 +1,42 @@
+{
+ "source": "sha256:0019c314fd5cb5a447299b136d62a9de17f6587abcd58f08f13fe4b2fffce25e",
+ "size": [960, 540],
+ "fps": 10,
+ "manimgx": {
+ "duration": 1.0,
+ "frames": [
+ ["33fa82a4ca7c052a", 11]
+ ],
+ "timeline": [
+ [0.0, 11]
+ ],
+ "id": "sha256:32aa8702925790c029676380a35c1a7d9458e39255c50afd38461aee8ff27f17"
+ },
+ "ce": {
+ "manim": "0.21.0",
+ "duration": 1.0,
+ "frames": [
+ ["45d952bdd85772e4", 10]
+ ],
+ "timeline": [
+ [0.0, 10]
+ ],
+ "id": "sha256:0c46b0dd9e89399ce809cfef57104b1063b8d7a0864c8d8cc0b2f2234144edc8"
+ },
+ "comparison": {
+ "metrics": ["local_max", "mae", "rmse", "max"],
+ "pairs": [
+ [0, 0, 14.96, 0.02, 0.5, 57.0],
+ [1, 1, 14.96, 0.02, 0.5, 57.0],
+ [2, 2, 14.96, 0.02, 0.5, 57.0],
+ [3, 3, 14.96, 0.02, 0.5, 57.0],
+ [4, 4, 14.96, 0.02, 0.5, 57.0],
+ [5, 5, 14.96, 0.02, 0.5, 57.0],
+ [6, 6, 14.96, 0.02, 0.5, 57.0],
+ [7, 7, 14.96, 0.02, 0.5, 57.0],
+ [8, 8, 14.96, 0.02, 0.5, 57.0],
+ [9, 9, 14.96, 0.02, 0.5, 57.0]
+ ],
+ "unpaired": []
+ }
+}
diff --git a/tests/integration/cases/tangent_line_example/ce.mkv.sha256 b/tests/integration/cases/tangent_line_example/ce.mkv.sha256
new file mode 100644
index 00000000..d5ea42fc
--- /dev/null
+++ b/tests/integration/cases/tangent_line_example/ce.mkv.sha256
@@ -0,0 +1 @@
+4392e8469384debe0cb051ae14c93b941614ce537b2c9e25af6458127e9659a1 ce.mkv
diff --git a/tests/integration/cases/tangent_line_example/manimgx.mkv.sha256 b/tests/integration/cases/tangent_line_example/manimgx.mkv.sha256
new file mode 100644
index 00000000..942894c3
--- /dev/null
+++ b/tests/integration/cases/tangent_line_example/manimgx.mkv.sha256
@@ -0,0 +1 @@
+7341820d9082a2f960bb5121e2249f86b05da3b0bc66705f89a060d17c14945d manimgx.mkv
diff --git a/tests/integration/cases/tangent_line_example/scene.py b/tests/integration/cases/tangent_line_example/scene.py
new file mode 100644
index 00000000..4f96e2e1
--- /dev/null
+++ b/tests/integration/cases/tangent_line_example/scene.py
@@ -0,0 +1,11 @@
+# Source: manim/mobject/geometry/line.py
+import manimgx as m
+
+
+class TangentLineExample(m.Scene):
+ def construct(self):
+ circle = m.Circle(radius=2)
+ line_1 = m.TangentLine(circle, alpha=0.0, length=4, color=m.BLUE_D) # right
+ line_2 = m.TangentLine(circle, alpha=0.4, length=4, color=m.GREEN) # top left
+ self.add(circle, line_1, line_2)
+ self.wait()
diff --git a/tests/integration/cases/tangent_line_vmob_kwarg/case.json b/tests/integration/cases/tangent_line_vmob_kwarg/case.json
new file mode 100644
index 00000000..abf4ff37
--- /dev/null
+++ b/tests/integration/cases/tangent_line_vmob_kwarg/case.json
@@ -0,0 +1,42 @@
+{
+ "source": "sha256:cf78544fcb2b0f9460ba543856540938e6a35ed637e326d781aa710649ae85e4",
+ "size": [960, 540],
+ "fps": 10,
+ "manimgx": {
+ "duration": 1.0,
+ "frames": [
+ ["97e92c9e38f76840", 11]
+ ],
+ "timeline": [
+ [0.0, 11]
+ ],
+ "id": "sha256:c3b725c0960bd2a42fe4e355df1f56f3ea63ed4d3a14e826836001248825789e"
+ },
+ "ce": {
+ "manim": "0.21.0",
+ "duration": 1.0,
+ "frames": [
+ ["a323bbc01ae073cb", 10]
+ ],
+ "timeline": [
+ [0.0, 10]
+ ],
+ "id": "sha256:bb0178e2f4f4ef65f344f6d7fd7b2ac73ffe11f096446b67525c763ccd871759"
+ },
+ "comparison": {
+ "metrics": ["local_max", "mae", "rmse", "max"],
+ "pairs": [
+ [0, 0, 9.49, 0.01, 0.31, 45.0],
+ [1, 1, 9.49, 0.01, 0.31, 45.0],
+ [2, 2, 9.49, 0.01, 0.31, 45.0],
+ [3, 3, 9.49, 0.01, 0.31, 45.0],
+ [4, 4, 9.49, 0.01, 0.31, 45.0],
+ [5, 5, 9.49, 0.01, 0.31, 45.0],
+ [6, 6, 9.49, 0.01, 0.31, 45.0],
+ [7, 7, 9.49, 0.01, 0.31, 45.0],
+ [8, 8, 9.49, 0.01, 0.31, 45.0],
+ [9, 9, 9.49, 0.01, 0.31, 45.0]
+ ],
+ "unpaired": []
+ }
+}
diff --git a/tests/integration/cases/tangent_line_vmob_kwarg/ce.mkv.sha256 b/tests/integration/cases/tangent_line_vmob_kwarg/ce.mkv.sha256
new file mode 100644
index 00000000..f7e1f67f
--- /dev/null
+++ b/tests/integration/cases/tangent_line_vmob_kwarg/ce.mkv.sha256
@@ -0,0 +1 @@
+e19a93c3e60f76b6af7f0bb834c0dfa62b3a312ec5f80cf49aa7f1215ec403e1 ce.mkv
diff --git a/tests/integration/cases/tangent_line_vmob_kwarg/manimgx.mkv.sha256 b/tests/integration/cases/tangent_line_vmob_kwarg/manimgx.mkv.sha256
new file mode 100644
index 00000000..085b2ccf
--- /dev/null
+++ b/tests/integration/cases/tangent_line_vmob_kwarg/manimgx.mkv.sha256
@@ -0,0 +1 @@
+99b0d26ad170bc10ae163a5713b883ed6e884358405907ff66de0df2ea0f0cf0 manimgx.mkv
diff --git a/tests/integration/cases/tangent_line_vmob_kwarg/scene.py b/tests/integration/cases/tangent_line_vmob_kwarg/scene.py
new file mode 100644
index 00000000..242c36f7
--- /dev/null
+++ b/tests/integration/cases/tangent_line_vmob_kwarg/scene.py
@@ -0,0 +1,11 @@
+# Source: manim/mobject/geometry/line.py
+import manimgx as m
+
+
+class TangentLineVmobKwarg(m.Scene):
+ def construct(self):
+ circle = m.Circle(radius=1.5, color=m.GREY_B)
+ # CE accepts ``vmob=`` (alias for the positional VMobject argument).
+ line = m.TangentLine(vmob=circle, alpha=0.25, length=4, color=m.YELLOW)
+ self.add(circle, line)
+ self.wait()
diff --git a/tests/integration/cases/tangential_arc_corners/case.json b/tests/integration/cases/tangential_arc_corners/case.json
new file mode 100644
index 00000000..b6400e7e
--- /dev/null
+++ b/tests/integration/cases/tangential_arc_corners/case.json
@@ -0,0 +1,33 @@
+{
+ "source": "sha256:87352368a618e9109e93390737748ba6a2d8e3226d9904d1563420e59c628184",
+ "size": [960, 540],
+ "fps": 10,
+ "manimgx": {
+ "duration": 0.0,
+ "frames": [
+ ["ab6b07b6e8cc7b6b", 1]
+ ],
+ "timeline": [
+ [0.0, 1]
+ ],
+ "id": "sha256:52f8cb105163a7ffd8c7949060b402c3593d74c0b5f0768fdaf94da28b3e4663"
+ },
+ "ce": {
+ "manim": "0.21.0",
+ "duration": 0.0,
+ "frames": [
+ ["48d66c197bf45fb7", 1]
+ ],
+ "timeline": [
+ [0.0, 1]
+ ],
+ "id": "sha256:23ea0766aabfcc98c24e08c54b4e0d8deea0a3824a01aab1c953345e6e9a9e52"
+ },
+ "comparison": {
+ "metrics": ["local_max", "mae", "rmse", "max"],
+ "pairs": [
+ [0, 0, 112.12, 0.24, 5.32, 252.0]
+ ],
+ "unpaired": []
+ }
+}
diff --git a/tests/integration/cases/tangential_arc_corners/ce.mkv.sha256 b/tests/integration/cases/tangential_arc_corners/ce.mkv.sha256
new file mode 100644
index 00000000..ad07b358
--- /dev/null
+++ b/tests/integration/cases/tangential_arc_corners/ce.mkv.sha256
@@ -0,0 +1 @@
+0b1fab202e516fbdc1e16295d70a13c87e4c311015cd11377b4378d93e36a25b ce.mkv
diff --git a/tests/integration/cases/tangential_arc_corners/manimgx.mkv.sha256 b/tests/integration/cases/tangential_arc_corners/manimgx.mkv.sha256
new file mode 100644
index 00000000..6ab5490b
--- /dev/null
+++ b/tests/integration/cases/tangential_arc_corners/manimgx.mkv.sha256
@@ -0,0 +1 @@
+3abe258f0c51c420831fe754ed404703cb807f9f2d316c82c5f3015b6e10f1e3 manimgx.mkv
diff --git a/tests/integration/cases/tangential_arc_corners/review.json b/tests/integration/cases/tangential_arc_corners/review.json
new file mode 100644
index 00000000..739a8d91
--- /dev/null
+++ b/tests/integration/cases/tangential_arc_corners/review.json
@@ -0,0 +1,8 @@
+{
+ "verdict": "working",
+ "note": "",
+ "source": "sha256:87352368a618e9109e93390737748ba6a2d8e3226d9904d1563420e59c628184",
+ "manimgx": "sha256:52f8cb105163a7ffd8c7949060b402c3593d74c0b5f0768fdaf94da28b3e4663",
+ "ce": "sha256:23ea0766aabfcc98c24e08c54b4e0d8deea0a3824a01aab1c953345e6e9a9e52",
+ "at": "2026-10-04"
+}
diff --git a/tests/integration/cases/tangential_arc_corners/scene.py b/tests/integration/cases/tangential_arc_corners/scene.py
new file mode 100644
index 00000000..2960050a
--- /dev/null
+++ b/tests/integration/cases/tangential_arc_corners/scene.py
@@ -0,0 +1,98 @@
+# Source: manim/mobject/geometry/arc.py
+import numpy as np
+
+import manimgx as m
+
+
+def line_intersection(line1, line2):
+ s1 = np.asarray(line1.get_start(), dtype=float)
+ e1 = np.asarray(line1.get_end(), dtype=float)
+ s2 = np.asarray(line2.get_start(), dtype=float)
+ e2 = np.asarray(line2.get_end(), dtype=float)
+
+ x1, y1 = s1[:2]
+ x2, y2 = e1[:2]
+ x3, y3 = s2[:2]
+ x4, y4 = e2[:2]
+
+ denom = (x1 - x2) * (y3 - y4) - (y1 - y2) * (x3 - x4)
+ if abs(denom) < 1e-10:
+ return (s1 + e1) / 2
+
+ t = ((x1 - x3) * (y3 - y4) - (y1 - y3) * (x3 - x4)) / denom
+ return np.array([x1 + t * (x2 - x1), y1 + t * (y2 - y1), 0.0])
+
+
+def get_unit_vector(line):
+ start = np.asarray(line.get_start(), dtype=float)
+ end = np.asarray(line.get_end(), dtype=float)
+ vector = end - start
+ return vector / np.linalg.norm(vector)
+
+
+def tangential_arc(line1, line2, radius, corner=(1, 1), **kwargs):
+ intersection_point = line_intersection(line1, line2)
+
+ s1, s2 = corner
+ unit_vector1 = s1 * get_unit_vector(line1)
+ unit_vector2 = s2 * get_unit_vector(line2)
+
+ dot = np.dot(unit_vector1, unit_vector2)
+ corner_angle = np.arccos(np.clip(dot, -1.0, 1.0))
+ tangent_point_distance = radius / np.tan(corner_angle / 2)
+
+ tangent_point1 = intersection_point + tangent_point_distance * unit_vector1
+ tangent_point2 = intersection_point + tangent_point_distance * unit_vector2
+
+ cross_product = (
+ unit_vector1[0] * unit_vector2[1] - unit_vector1[1] * unit_vector2[0]
+ )
+
+ if cross_product < 0:
+ start_point = tangent_point1
+ end_point = tangent_point2
+ else:
+ start_point = tangent_point2
+ end_point = tangent_point1
+
+ return m.ArcBetweenPoints(start=start_point, end=end_point, radius=radius, **kwargs)
+
+
+class TangentialArcCorners(m.Scene):
+ def construct(self):
+ # Create two intersecting lines
+ line1 = m.DashedLine(start=3 * m.LEFT, end=3 * m.RIGHT, color=m.GREY)
+ line2 = m.DashedLine(start=3 * m.UP, end=3 * m.DOWN, color=m.GREY)
+
+ # All four corner configurations with different colors
+ arc_pp = tangential_arc(line1, line2, radius=1.5, corner=(1, 1), color=m.RED)
+ arc_pn = tangential_arc(line1, line2, radius=1.5, corner=(1, -1), color=m.GREEN)
+ arc_np = tangential_arc(line1, line2, radius=1.5, corner=(-1, 1), color=m.BLUE)
+ arc_nn = tangential_arc(
+ line1, line2, radius=1.5, corner=(-1, -1), color=m.YELLOW
+ )
+
+ # Labels for each arc
+ label_pp = m.Text("(1,1)", font_size=24, color=m.RED).next_to(
+ arc_pp,
+ m.UR,
+ buff=0.1,
+ )
+ label_pn = m.Text("(1,-1)", font_size=24, color=m.GREEN).next_to(
+ arc_pn,
+ m.DR,
+ buff=0.1,
+ )
+ label_np = m.Text("(-1,1)", font_size=24, color=m.BLUE).next_to(
+ arc_np,
+ m.UL,
+ buff=0.1,
+ )
+ label_nn = m.Text("(-1,-1)", font_size=24, color=m.YELLOW).next_to(
+ arc_nn,
+ m.DL,
+ buff=0.1,
+ )
+
+ self.add(line1, line2, arc_pp, arc_pn, arc_np, arc_nn)
+ self.add(label_pp, label_pn, label_np, label_nn)
diff --git a/tests/integration/cases/tangential_arc_example/case.json b/tests/integration/cases/tangential_arc_example/case.json
new file mode 100644
index 00000000..c1166929
--- /dev/null
+++ b/tests/integration/cases/tangential_arc_example/case.json
@@ -0,0 +1,33 @@
+{
+ "source": "sha256:7ed7f58b6db9551912fb5473a5d269fbceca4ab1a1c34515c38e96b3cc6d3e41",
+ "size": [960, 540],
+ "fps": 10,
+ "manimgx": {
+ "duration": 0.0,
+ "frames": [
+ ["b12e9476d7ae2009", 1]
+ ],
+ "timeline": [
+ [0.0, 1]
+ ],
+ "id": "sha256:cbf1add1d78399e5657ee3b0e641c7fd7ff65840be829183e38c73723a9dcd42"
+ },
+ "ce": {
+ "manim": "0.21.0",
+ "duration": 0.0,
+ "frames": [
+ ["aafa2511296e4c34", 1]
+ ],
+ "timeline": [
+ [0.0, 1]
+ ],
+ "id": "sha256:a02d2d3a8a263b3518d90037f931b3f95b9f0a02f48bb927f2a3d23c91c8eab7"
+ },
+ "comparison": {
+ "metrics": ["local_max", "mae", "rmse", "max"],
+ "pairs": [
+ [0, 0, 4.9, 0.01, 0.21, 54.0]
+ ],
+ "unpaired": []
+ }
+}
diff --git a/tests/integration/cases/tangential_arc_example/ce.mkv.sha256 b/tests/integration/cases/tangential_arc_example/ce.mkv.sha256
new file mode 100644
index 00000000..e905ef19
--- /dev/null
+++ b/tests/integration/cases/tangential_arc_example/ce.mkv.sha256
@@ -0,0 +1 @@
+1375392e21adcba34963ce9d9d39cbd7188b85efba7ef01ff7c05b20b0e9f125 ce.mkv
diff --git a/tests/integration/cases/tangential_arc_example/manimgx.mkv.sha256 b/tests/integration/cases/tangential_arc_example/manimgx.mkv.sha256
new file mode 100644
index 00000000..823e5c02
--- /dev/null
+++ b/tests/integration/cases/tangential_arc_example/manimgx.mkv.sha256
@@ -0,0 +1 @@
+f08fd745952f3c0351fc406383d4aeb3ca0bfed0c828ba720d11322945d3e4ac manimgx.mkv
diff --git a/tests/integration/cases/tangential_arc_example/scene.py b/tests/integration/cases/tangential_arc_example/scene.py
new file mode 100644
index 00000000..4f16496e
--- /dev/null
+++ b/tests/integration/cases/tangential_arc_example/scene.py
@@ -0,0 +1,53 @@
+# Source: manim/mobject/geometry/arc.py
+import numpy as np
+
+import manimgx as m
+
+
+def make_tangential_arc(line1, line2, radius, corner=(1, 1), **kwargs):
+ def det(a, b):
+ return a[0] * b[1] - a[1] * b[0]
+
+ start1, end1 = line1.get_start(), line1.get_end()
+ start2, end2 = line2.get_start(), line2.get_end()
+ xdiff = np.array([start1[0] - end1[0], start2[0] - end2[0]])
+ ydiff = np.array([start1[1] - end1[1], start2[1] - end2[1]])
+ div = det(xdiff, ydiff)
+ d = np.array([det(start1, end1), det(start2, end2)])
+ intersection_point = np.array([det(d, xdiff) / div, det(d, ydiff) / div, 0])
+
+ s1, s2 = corner
+ unit_vector1 = s1 * (end1 - start1) / np.linalg.norm(end1 - start1)
+ unit_vector2 = s2 * (end2 - start2) / np.linalg.norm(end2 - start2)
+
+ dot_product = np.dot(unit_vector1, unit_vector2)
+ corner_angle = np.arccos(np.clip(dot_product, -1, 1))
+ tangent_point_distance = radius / np.tan(corner_angle / 2)
+
+ tangent_point1 = intersection_point + tangent_point_distance * unit_vector1
+ tangent_point2 = intersection_point + tangent_point_distance * unit_vector2
+
+ cross_product = (
+ unit_vector1[0] * unit_vector2[1] - unit_vector1[1] * unit_vector2[0]
+ )
+ if cross_product < 0:
+ start_point = tangent_point1
+ end_point = tangent_point2
+ else:
+ start_point = tangent_point2
+ end_point = tangent_point1
+
+ return m.ArcBetweenPoints(start=start_point, end=end_point, radius=radius, **kwargs)
+
+
+class TangentialArcExample(m.Scene):
+ def construct(self):
+ line1 = m.DashedLine(start=3 * m.LEFT, end=3 * m.RIGHT)
+ line1.rotate(angle=31 * m.DEGREES, about_point=m.ORIGIN)
+ line2 = m.DashedLine(start=3 * m.UP, end=3 * m.DOWN)
+ line2.rotate(angle=12 * m.DEGREES, about_point=m.ORIGIN)
+
+ arc = make_tangential_arc(
+ line1, line2, radius=2.25, corner=(1, 1), color=m.TEAL
+ )
+ self.add(arc, line1, line2)