SketchUp C API
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions
math_helpers.h File Reference
#include <SketchUpAPI/common.h>

Go to the source code of this file.

Functions

SU_EXPORT double SUDegreesToRadians (double value)
 Converts a value from degrees to radians. More...
 
SU_EXPORT double SURadiansToDegrees (double value)
 Converts a value from radians to degrees. More...
 
SU_EXPORT bool SUEquals (double val1, double val2)
 Compares two values for equality with a tolerance. More...
 
SU_EXPORT bool SULessThan (double val1, double val2)
 Compares two values with a tolerance to see if val1 is less than val2. More...
 
SU_EXPORT bool SULessThanOrEqual (double val1, double val2)
 Compares two values with a tolerance to see if val1 is less than or equal to val2. More...
 
SU_EXPORT bool SUGreaterThan (double val1, double val2)
 Compares two values with a tolerance to see if val1 is greater than val2. More...
 
SU_EXPORT bool SUGreaterThanOrEqual (double val1, double val2)
 Compares two values with a tolerance to see if val1 is greater than or equal to val2. More...
 

Function Documentation

SU_EXPORT double SUDegreesToRadians ( double  value)

Converts a value from degrees to radians.

Since
SketchUp 2018, API 6.0
Parameters
[in]valueA value in degrees.
Returns
The value converted to radians.
SU_EXPORT bool SUEquals ( double  val1,
double  val2 
)

Compares two values for equality with a tolerance.

Since
SketchUp 2018, API 6.0
Parameters
[in]val1The first value.
[in]val2The second value.
Returns
True if the values are equal.
SU_EXPORT bool SUGreaterThan ( double  val1,
double  val2 
)

Compares two values with a tolerance to see if val1 is greater than val2.

Since
SketchUp 2018, API 6.0
Parameters
[in]val1The first value.
[in]val2The second value.
Returns
True if val1 is greater than val2.
SU_EXPORT bool SUGreaterThanOrEqual ( double  val1,
double  val2 
)

Compares two values with a tolerance to see if val1 is greater than or equal to val2.

Since
SketchUp 2018, API 6.0
Parameters
[in]val1The first value.
[in]val2The second value.
Returns
True if val1 is greater than or equal to val2.
SU_EXPORT bool SULessThan ( double  val1,
double  val2 
)

Compares two values with a tolerance to see if val1 is less than val2.

Since
SketchUp 2018, API 6.0
Parameters
[in]val1The first value.
[in]val2The second value.
Returns
True if val1 is less than val2.
SU_EXPORT bool SULessThanOrEqual ( double  val1,
double  val2 
)

Compares two values with a tolerance to see if val1 is less than or equal to val2.

Since
SketchUp 2018, API 6.0
Parameters
[in]val1The first value.
[in]val2The second value.
Returns
True if val1 is less than or equal to val2.
SU_EXPORT double SURadiansToDegrees ( double  value)

Converts a value from radians to degrees.

Since
SketchUp 2018, API 6.0
Parameters
[in]valueA value in radians.
Returns
The value converted to degrees.