getPoint method

void getPoint(
  1. double t1,
  2. double t2,
  3. Vector target
)

Implementation

void getPoint(double t1, double t2,Vector target ) {
	final u = knots1[ 0 ] + t1 * ( knots1[ knots1.length - 1 ] - knots1[ 0 ] ); // linear mapping t1->u
	final v = knots2[ 0 ] + t2 * ( knots2[ knots2.length - 1 ] - knots2[ 0 ] ); // linear mapping t2->u

	NURBSutils.calcSurfacePoint( degree1, degree2, knots1, knots2, controlPoints, u, v, target );
}