Bézier curves/Intersections: Difference between revisions

m
Spelling mistake in comment corrected.
(New post.)
m (Spelling mistake in comment corrected.)
Line 2,179:
public static void main(String[] aArgs) {
QuadCurve vertical = new QuadCurve( new QuadSpline(-1.0, 0.0, 1.0), new QuadSpline(0.0, 10.0, 0.0) );
// QuadCurve pvertical represents the Bezier curve having control points (-1, 0), (0, 10) and (1, 0)
QuadCurve horizontal = new QuadCurve( new QuadSpline(2.0, -8.0, 2.0), new QuadSpline(1.0, 2.0, 3.0) );
// QuadCurve qhorizontal represents the Bezier curve having control points (2, 1), (-8, 2) and (2, 3)
 
System.out.println("The points of intersection are:");
908

edits