@@ -17,13 +17,13 @@ export class Curve<T extends Vector> {
...
@@ -17,13 +17,13 @@ export class Curve<T extends Vector> {
/**
/**
* Returns a vector for point t of the curve where t is between 0 and 1
* Returns a vector for point t of the curve where t is between 0 and 1
* getPoint(t: number): T;
* getPoint(t: number, optionalTarget?: T): T;
*/
*/
getPoint(t:number,optionalTarget?:T):T;
getPoint(t:number,optionalTarget?:T):T;
/**
/**
* Returns a vector for point at relative position in curve according to arc length
* Returns a vector for point at relative position in curve according to arc length
* getPointAt(u: number): T;
* getPointAt(u: number, optionalTarget?: T): T;
*/
*/
getPointAt(u:number,optionalTarget?:T):T;
getPointAt(u:number,optionalTarget?:T):T;
...
@@ -61,15 +61,15 @@ export class Curve<T extends Vector> {
...
@@ -61,15 +61,15 @@ export class Curve<T extends Vector> {
/**
/**
* Returns a unit vector tangent at t. If the subclassed curve do not implement its tangent derivation, 2 points a small delta apart will be used to find its gradient which seems to give a reasonable approximation
* Returns a unit vector tangent at t. If the subclassed curve do not implement its tangent derivation, 2 points a small delta apart will be used to find its gradient which seems to give a reasonable approximation
* getTangent(t: number): T;
* getTangent(t: number, optionalTarget?: T): T;
*/
*/
getTangent(t:number):T;
getTangent(t:number,optionalTarget?:T):T;
/**
/**
* Returns tangent at equidistance point u on the curve
* Returns tangent at equidistance point u on the curve