trig
Trigonometric Functions (f64)
Trigonometric functions for 32.32 fixed-point numbers. All angles are in radians.
Standard Functions
sin/cos/tan- Basic trig functionsasin/acos/atan- Inverse trig functions
Fast Variants
Each function has a _fast variant that trades precision for gas savings.
Use these when approximate results are acceptable.
Constants
PI≈ 3.14159… (13493037705 in 32.32 format)HALF_PI≈ 1.57079…TWO_PI≈ 6.28318…
Fully qualified path: cairo_fp::f64::math::trig
Constants
| TWO_PI | 2π in 32.32 fixed-point format. |
| PI | π in 32.32 fixed-point format. |
| HALF_PI | π/2 in 32.32 fixed-point format. |