Hi guys,
I was wondering, is there any method to retrieve a point(x,y,z) from a curve (alternatively bezier) at specified t parameter?
- PVector[] points;
- void setup()
- {
- size(500,500, P3D);
- points= new PVector[4];
- points[0] = new PVector(100,100);
- points[1] = new PVector(100,300);
- points[2] = new PVector(350,100);
- points[3] = new PVector(300,400);
- }
- void draw()
- {
- stroke(0);
- noFill();
- bezier(points[0].x, points[0].y, points[1].x, points[1].y, points[2].x, points[2].y, points[3].x, points[3].y);
- }
1