We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 323a7dd commit 5bceba5Copy full SHA for 5bceba5
1 file changed
crates/processing_pyo3/src/lib.rs
@@ -602,6 +602,22 @@ mod mewnala {
602
#[pymodule_export]
603
const F12: u32 = 301;
604
605
+ // Math constants
606
+ #[pymodule_export]
607
+ const PI: f32 = std::f32::consts::PI;
608
609
+ const TWO_PI: f32 = std::f32::consts::TAU;
610
611
+ const HALF_PI: f32 = std::f32::consts::FRAC_PI_2;
612
613
+ const QUARTER_PI: f32 = std::f32::consts::FRAC_PI_4;
614
615
+ const TAU: f32 = std::f32::consts::TAU;
616
617
+ const DEG_TO_RAD: f32 = std::f32::consts::PI / 180.0;
618
619
+ const RAD_TO_DEG: f32 = 180.0 / std::f32::consts::PI;
620
+
621
// color space constants for color_mode()
622
623
const SRGB: u8 = 0;
0 commit comments