angle
An angle describing a rotation.
Typst supports the following angular units:
- Degrees:
180deg
- Radians:
3.14rad
Example
#rotate(10deg)[Hello there!]
定義
Functions and types and can have associated definitions. These are accessed by specifying the function or type, followed by a period, and then the definition's name.
Functions and types and can have associated definitions. These are accessed by specifying the function or type, followed by a period, and then the definition's name.
rad
Converts this angle to radians.
self.rad() -> float
deg
Converts this angle to degrees.
self.deg() -> float