Search:
File mathnetics.js
file
mathnetics.js
Variable Summary
The names of the files to automatically load whenever mathnetics.js is loaded (['Matrix','svg/svg'], i.e.)
String
pathToButtons
Public reference to toButtons
The path to the directory containing all the JS files; can be a URL or a relative path
float
phi
The so-called "Golden Ratio" that occurs frequently in nature.
The path to image icons.
String
version
The version number of mathnetics.
float
zero
The value of zero to use in cases of roundoff error, etc.
Function Summary
General object extension function.
Requires all the files specified in autoLoad.
Includes all of the files in a supplied array (autoLoad for example).
Variable Details
variable private Array autoLoad
The names of the files to automatically load whenever mathnetics.js is loaded (['Matrix','svg/svg'], i.e.)
variable String pathToButtons
Public reference to toButtons
variable private String pathToHere
The path to the directory containing all the JS files; can be a URL or a relative path
variable float phi
The so-called "Golden Ratio" that occurs frequently in nature.
Also the limit of the ratio between two successive Fibonacci numbers.
Equals (1 + sqrt(5)) / 2
variable private String toButtons
The path to image icons. See SceneButton.js to see and/or change specific file names.
variable String version
The version number of mathnetics.
variable float zero
The value of zero to use in cases of roundoff error, etc. Defaults to 10^-6
Function Details
function extend
public
Object
extend([Object
target], Object
options)
General object extension function. Will extend the target object with all of the
attributes of an object as passed to the function. See files in util and gfx for example usage.
Parameters:
[target]
- the object to extend; if none specified, extends mathnetics
options
- the properties, as an object literal, to add to the target object
Returns:
the target object, extended/updated with options
function load
public
void
load()
Requires all the files specified in autoLoad. Called automatically by mathnetics.js.
function require
public
void
require(Array
dependsOn)
Includes all of the files in a supplied array (autoLoad for example). Used frequently internally
to require all dependent files when one is loaded by user.
Parameters:
dependsOn
- the array of filenames to be included; ['Matrix','gfx/SVG.js'], i.e.