JX Application Framework
Loading...
Searching...
No Matches
Functions | Variables
jMath.h File Reference
#include "jTypes.h"
#include "JMinMax.h"
#include <math.h>
#include <numbers>
Include dependency graph for jMath.h:
This graph shows which files directly or indirectly include this file:

Functions

long JRound (const double)
 
int JSign (const double)
 
double JASinh (const double)
 
double JACosh (const double)
 
double JATanh (const double)
 
long JLFloor (const double x)
 
long JLCeil (const double x)
 
long JLAbs (const long x)
 
long JTruncate (const double x)
 

Variables

constexpr JFloat kJDegToRad = std::numbers::pi / 180.0
 
constexpr JFloat kJRadToDeg = 180.0 / std::numbers::pi
 

Function Documentation

◆ JACosh()

double JACosh ( const double  x)

Principal value of the inverse hyperbolic cosine.

◆ JASinh()

double JASinh ( const double  x)

Inverse hyperbolic sine.

◆ JATanh()

double JATanh ( const double  x)

Inverse hyperbolic tangent.

◆ JLAbs()

long JLAbs ( const long  x)
inline

◆ JLCeil()

long JLCeil ( const double  x)
inline

◆ JLFloor()

long JLFloor ( const double  x)
inline

◆ JRound()

long JRound ( const double  x)

Returns long int nearest to x. Correctly truncates values to the allowed range for long ints.

◆ JSign()

int JSign ( const double  x)

Returns +1, 0, -1 corresponding to the sign of the argument.

◆ JTruncate()

long JTruncate ( const double  x)
inline

Variable Documentation

◆ kJDegToRad

constexpr JFloat kJDegToRad = std::numbers::pi / 180.0
constexpr

◆ kJRadToDeg

constexpr JFloat kJRadToDeg = 180.0 / std::numbers::pi
constexpr