15 lines
500 B
JavaScript
15 lines
500 B
JavaScript
|
// Copyright (c) 2011, Chris Umbel, James Coglan
|
||
|
// This file is required in order for any other classes to work. Some Vector methods work with the
|
||
|
// other Sylvester classes and are useless unless they are included. Other classes such as Line and
|
||
|
// Plane will not function at all without Vector being loaded first.
|
||
|
|
||
|
Math.sign = function(x) {
|
||
|
return x < 0 ? -1: 1;
|
||
|
}
|
||
|
|
||
|
var Sylvester = {
|
||
|
precision: 1e-6
|
||
|
};
|
||
|
|
||
|
module.exports = Sylvester;
|