GO2cam Javascript API  6.11
Basic mathematical objects

Classes

class  GO2SCalcUtil
 Computation utilities. More...
 
class  GO2SIntersect
 Intersections computation. More...
 
class  GO2SMatrix
 Class for the 4x4 matrix. More...
 
class  GO2SReference
 Creation of a geometry reference. More...
 
class  GO2SXYZ
 Creation of a coordinate reference. More...
 

Detailed Description

Basic operations can be achieved with the standard Javascript Math object. For example:

console.log('square root of 2 is: ' + Math.sqrt(2))
console.log('sinus(0.5) is: ' + Math.sin(0.5))
console.log('Pi is: ' + Math.PI)

output:

square root of 2 is: 1.4142135623730951
sinus(0.5) is: 0.479425538604203
Pi is: 3.141592653589793

For more advanced computation, i.e. using matrix or vectors, following objects listed in Classes