JUCE  v5.4.1-191-g0ab5e696f
JUCE API
Looking for a senior C++ dev?
I'm looking for work. Hire me!
juce::MathConstants< FloatType > Struct Template Reference

Commonly used mathematical constants. More...

#include <juce_MathsFunctions.h>

Collaboration diagram for juce::MathConstants< FloatType >:

Static Public Attributes

static const FloatType euler = static_cast<FloatType> (2.71828182845904523536L)
 A predefined value for Euler's number. More...
 
static const FloatType halfPi = static_cast<FloatType> (3.141592653589793238L / 2)
 A predefined value for Pi / 2. More...
 
static const FloatType pi = static_cast<FloatType> (3.141592653589793238L)
 A predefined value for Pi. More...
 
static const FloatType sqrt2 = static_cast<FloatType> (1.4142135623730950488L)
 A predefined value for sqrt(2) More...
 
static const FloatType twoPi = static_cast<FloatType> (2 * 3.141592653589793238L)
 A predefined value for 2 * Pi. More...
 

Detailed Description

template<typename FloatType>
struct juce::MathConstants< FloatType >

Commonly used mathematical constants.

{Core}

Member Data Documentation

◆ euler

template<typename FloatType >
const FloatType juce::MathConstants< FloatType >::euler = static_cast<FloatType> (2.71828182845904523536L)
static

A predefined value for Euler's number.

Referenced by juce::juce_hypot().

◆ halfPi

template<typename FloatType >
const FloatType juce::MathConstants< FloatType >::halfPi = static_cast<FloatType> (3.141592653589793238L / 2)
static

A predefined value for Pi / 2.

Referenced by juce::juce_hypot().

◆ pi

template<typename FloatType >
const FloatType juce::MathConstants< FloatType >::pi = static_cast<FloatType> (3.141592653589793238L)
static

A predefined value for Pi.

Referenced by juce::juce_hypot().

◆ sqrt2

template<typename FloatType >
const FloatType juce::MathConstants< FloatType >::sqrt2 = static_cast<FloatType> (1.4142135623730950488L)
static

A predefined value for sqrt(2)

Referenced by juce::juce_hypot().

◆ twoPi

template<typename FloatType >
const FloatType juce::MathConstants< FloatType >::twoPi = static_cast<FloatType> (2 * 3.141592653589793238L)
static

A predefined value for 2 * Pi.

Referenced by juce::juce_hypot().


The documentation for this struct was generated from the following file: