This project is to convert this function from Java to vb.net.
It has some code that I don't understand. such as "scale" and "add" etc.
Here is the JAVA function. ( I am still working on the other code so it is not testable, please be sure you know java and vb well enough to do this without testing)
public static Point C(double t, int order, int nPoints, Point points[], double weights[], double knots[]) {
Point c = new Point();
double rational = 0;
for (int counter = 0; counter < nPoints; counter++) {
double b = B(counter, order, t, knots);
Point p = points[counter].scale(b * weights[counter]);
[login to view URL](p);
rational += b * weights[counter];
}
return [login to view URL](1.0 / rational);
}
I will have some other projects in a few hours later.
Yes, I could do this for you. And I'm available now.
The call to an external function (B) would of course assume you had that function translated and available. I am assuming you don't need code to connect to external functions that remain in Java.
Is Visual Studio (VB) 2010 suitable?