Back to functions

line


sort

Computes the equation of a straight line given two points

Usage: nerdamer("line(p1, p2)")


Parameters

vector p1 A vector in form of [x, y]
vector p2 A vector in form of [x, y]

Returns

Vector

EXAMPLES:
var x = nerdamer('line([-1,-4], [3,11])');
console.log(x.toString());
var y = nerdamer('line([1,2], [3,4])');
console.log(y.toString());
OUTPUT:
Back to functions