ManimCommunity/manim

Add documentation about unit conversion feature

Offen

#2.512 geöffnet am 29.01.2022

 (2 Kommentare) (0 Reaktionen) (1 zugewiesene Person)Python (1.378 Forks)batch import
documentationenhancementgood first issue

Repository-Metriken

Stars
 (17.820 Sterne)
PR-Merge-Metriken
 (Durchschn. Merge 90T 10h) (31 gemergte PRs in 30 T)

Beschreibung

Enhancement proposal

This feature was implemented in https://github.com/ManimCommunity/manim/pull/742, but there isn't any documentation about this.

# 50px -> Munit
>>> 50 * unit.Pixels
0.37037037037037035
# 90 degrees to radians
>>> 90 * unit.Degrees
1.5707963267948966
# 10 % of X-axis
>>> unit.Percent(X_AXIS) * 10
1.4222222222222223

Contributor Guide