Manifold 3.0
Robust geometry
 
Loading...
Searching...
No Matches
Scalar

Simple scalar operations. More...

Functions

constexpr double radians (double a)
 
constexpr double degrees (double a)
 
constexpr double smoothstep (double edge0, double edge1, double a)
 
double sind (double x)
 
double cosd (double x)
 

Variables

constexpr double kPi = 3.14159265358979323846264338327950288
 
constexpr double kTwoPi = 6.28318530717958647692528676655900576
 
constexpr double kHalfPi = 1.57079632679489661923132169163975144
 

Detailed Description

Simple scalar operations.

Function Documentation

◆ radians()

double radians ( double a)
constexpr

Convert degrees to radians.

Parameters
aAngle in degrees.

◆ degrees()

double degrees ( double a)
constexpr

Convert radians to degrees.

Parameters
aAngle in radians.

◆ smoothstep()

double smoothstep ( double edge0,
double edge1,
double a )
constexpr

Performs smooth Hermite interpolation between 0 and 1 when edge0 < x < edge1.

Parameters
edge0Specifies the value of the lower edge of the Hermite function.
edge1Specifies the value of the upper edge of the Hermite function.
aSpecifies the source value for interpolation.

◆ sind()

double sind ( double x)
inline

Sine function where multiples of 90 degrees come out exact.

Parameters
xAngle in degrees.

◆ cosd()

double cosd ( double x)
inline

Cosine function where multiples of 90 degrees come out exact.

Parameters
xAngle in degrees.