We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e3ceaa5 commit 0a61ad2Copy full SHA for 0a61ad2
1 file changed
crates/processing_pyo3/src/lib.rs
@@ -572,6 +572,18 @@ mod mewnala {
572
#[pymodule_export]
573
const F12: u32 = 301;
574
575
+ // Math constants
576
+ #[pymodule_export]
577
+ const PI: f32 = std::f32::consts::PI;
578
579
+ const TWO_PI: f32 = std::f32::consts::TAU;
580
581
+ const HALF_PI: f32 = std::f32::consts::FRAC_PI_2;
582
583
+ const QUARTER_PI: f32 = std::f32::consts::FRAC_PI_4;
584
585
+ const TAU: f32 = std::f32::consts::TAU;
586
+
587
// color space constants for color_mode()
588
589
const SRGB: u8 = 0;
0 commit comments