注意:该中文文档为社区驱动的非官网文档,可能存在错译、漏译或过时等问题,请以官网文档 Documentation 为准,如发现错漏,也欢迎 您的贡献镜像)。Typst 非官方中文交流 QQ 群:793548390
Warning: the Chinese document is a community-driven non-official document, there may be mistranslation, omission or outdated problems, please refer to the official website documentation.
Typst 中文文档

angle

An angle describing a rotation.

Typst supports the following angular units:

Example

#rotate(10deg)[Hello there!]
Preview

定义
函数和类型可以有与其关联的定义 (成员或方法)。可以使用 "." 操作符来访问调用它们。

rad

Converts this angle to radians.

self.rad(
) -> float

deg

Converts this angle to degrees.

self.deg(
) -> float