GO2cam Javascript API  6.11
GO2SCalcUtil Class Reference

Computation utilities. More...

Inherits QObject.

Static Public Member Functions

static Number Evaluate (String string)
 
static Number ToDegree (Number angle)
 
static Number ToRadian (Number angle)
 

Detailed Description

Computation utilities.

Member Function Documentation

◆ Evaluate()

static Number GO2SCalcUtil::Evaluate ( String string)
static

Compute a value from a mathematical expression

var value = GO2SUtil.Evaluate("2 + 2");
Class of utility functions.
Definition GO2SUtil.hpp:12
Returns
the computed value
Parameters
[in]stringmathematical expression

◆ ToDegree()

static Number GO2SCalcUtil::ToDegree ( Number angle)
inlinestatic
Returns
a value in degree from a value in radian

◆ ToRadian()

static Number GO2SCalcUtil::ToRadian ( Number angle)
inlinestatic
Returns
a value in radian from a value in degree