Search:
Namespace mathnetics
namespace
mathnetics
The root namespace in which all Mathnetics-specific objects fall. Note that universal mathematical objects, such as
Vector, Plane, Matrix, Line, etc. are global objects.
The mathnetics namespace also defines a few constants, such as zero (used for roundoff error) and phi.
Class Summary
mathnetics.Object3D is a class that defines 3D objects that can both be manipulated in their own right and displayed in mathnetics.gfx.Scene3D objects.
The point2D class defines a point in 2-dimensional Euclidean space via homogeneous coordinates (i.e.
The point3D class defines a point in 3-dimensional Euclidean space via homogeneous coordinates (i.e.
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.