mirror of
https://github.com/processing/processing4.git
synced 2026-06-16 04:26:26 +02:00
Update PGraphics.java
This commit is contained in:
@@ -3212,8 +3212,8 @@ public class PGraphics extends PImage implements PConstants {
|
||||
* @see PGraphics#curvePoint(float, float, float, float, float)
|
||||
*/
|
||||
public float bezierPoint(float a, float b, float c, float d, float t) {
|
||||
float t1 = t-1.0f;
|
||||
return t * ( 3*t1*(b*t1-c*t) + d*t*t ) - a*t1*t1*t1;
|
||||
float t1 = 1.0f - t;
|
||||
return (a*t1 + 3*b*t)*t1*t1 + (3*c*t1 + d*t)*t*t;
|
||||
}
|
||||
/**
|
||||
* ( begin auto-generated from bezierTangent.xml )
|
||||
|
||||
Reference in New Issue
Block a user