Welcome, guest ( Login )

WikiHome » Animation » Curves

Curves

Version 7, changed by owen 12/09/2006.   Show version history

OBSOLETE?

function Line(start, end) {
this.start = start;
this.end = end;
this.dimensions = start.length;

//simple function to find point on an n-dimensional, straight line
this.getValue = function(n) {
var retVal = new Array(this.dimensions);
for(var i=0;i<this.dimensions;i++)
retVal[i] = ((this.end[i] - this.start[i]) * n) + this.start[i];
return retVal;
}

return this;
}

Attachments (0)

  File By Size Attached Ver.