Hermes
hermes::Trigonometry Struct Reference

Trigonometric functions. More...

Static Public Member Functions

static constexpr HERMES_DEVICE_CALLABLE real_t radians2degrees (real_t a)
 Converts radians to degrees. More...
 
static constexpr HERMES_DEVICE_CALLABLE real_t degrees2radians (real_t a)
 Converts degrees to radians. More...
 
static HERMES_DEVICE_CALLABLE f32 safe_acos (f32 x)
 Computes acos with clamped input. More...
 
static HERMES_DEVICE_CALLABLE f32 safe_asin (f32 x)
 Computes asin with clamped input. More...
 

Detailed Description

Trigonometric functions.

Member Function Documentation

◆ degrees2radians()

static constexpr HERMES_DEVICE_CALLABLE real_t hermes::Trigonometry::degrees2radians ( real_t  a)
inlinestaticconstexpr

Converts degrees to radians.

Parameters
a
Returns

◆ radians2degrees()

static constexpr HERMES_DEVICE_CALLABLE real_t hermes::Trigonometry::radians2degrees ( real_t  a)
inlinestaticconstexpr

Converts radians to degrees.

Parameters
a
Returns

◆ safe_acos()

static HERMES_DEVICE_CALLABLE f32 hermes::Trigonometry::safe_acos ( f32  x)
inlinestatic

Computes acos with clamped input.

Parameters
x
Returns

◆ safe_asin()

static HERMES_DEVICE_CALLABLE f32 hermes::Trigonometry::safe_asin ( f32  x)
inlinestatic

Computes asin with clamped input.

Parameters
x
Returns

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