Skip to content

Commit a9ed25e

Browse files
committed
Add math constants.
1 parent 0a61ad2 commit a9ed25e

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

  • crates/processing_pyo3/src

crates/processing_pyo3/src/lib.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -583,6 +583,10 @@ mod mewnala {
583583
const QUARTER_PI: f32 = std::f32::consts::FRAC_PI_4;
584584
#[pymodule_export]
585585
const TAU: f32 = std::f32::consts::TAU;
586+
#[pymodule_export]
587+
const DEG_TO_RAD: f32 = std::f32::consts::PI / 180.0;
588+
#[pymodule_export]
589+
const RAD_TO_DEG: f32 = 180.0 / std::f32::consts::PI;
586590

587591
// color space constants for color_mode()
588592
#[pymodule_export]

0 commit comments

Comments
 (0)