Skip to content

Commit 31bc4b1

Browse files
committed
Add THIRD_PI, DEG_TO_RAD, RAD_TO_DEG constants
1 parent ed33a49 commit 31bc4b1

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/Processing.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1273,6 +1273,9 @@ static constexpr float TWO_PI = static_cast<float>(M_PI * 2.0);
12731273
static constexpr float HALF_PI = static_cast<float>(M_PI / 2.0);
12741274
static constexpr float QUARTER_PI = static_cast<float>(M_PI / 4.0);
12751275
static constexpr float TAU = TWO_PI; // alias
1276+
static constexpr float THIRD_PI = static_cast<float>(M_PI / 3.0);
1277+
static constexpr float DEG_TO_RAD = static_cast<float>(M_PI / 180.0);
1278+
static constexpr float RAD_TO_DEG = static_cast<float>(180.0 / M_PI);
12761279

12771280
// Renderer flags for size()
12781281
static constexpr int P2D = 2;

0 commit comments

Comments
 (0)