mirror of
https://github.com/josdejong/mathjs.git
synced 2025-12-08 19:46:04 +00:00
- Added intersect.js file in lib/expression/docs - added an entry in the index.js file in expression/docs - modified intersect.js to give appropriate error messages - added an entry in lib/math.js so that the test case file could find the function - wrote the test cases for intersect
15 lines
392 B
JavaScript
15 lines
392 B
JavaScript
module.exports = {
|
|
'name': 'intersect',
|
|
'category': 'Geometry',
|
|
'syntax': [
|
|
'intersect(expr1, expr2, expr3, expr4)',
|
|
'intersect(expr1, expr2, expr3)'
|
|
],
|
|
'description': 'Computes the intersection point of lines and/or planes.',
|
|
'examples': [
|
|
'intersect([0, 0], [10, 10], [10, 0], [0, 10])',
|
|
'intersect([1, 0, 1], [4, -2, 2], [1, 1, 1, 6])'
|
|
],
|
|
'seealso': []
|
|
};
|