From 25c5eac5e6ca1035db1eddd7bea9ac78531da57e Mon Sep 17 00:00:00 2001 From: David Thompson Date: Thu, 28 Dec 2023 11:23:49 -0500 Subject: Delete manuals! Good riddance! These are hosted on files.dthompson.us now! --- manuals/chickadee/Bezier-Curves.html | 161 ----------------------------------- 1 file changed, 161 deletions(-) delete mode 100644 manuals/chickadee/Bezier-Curves.html (limited to 'manuals/chickadee/Bezier-Curves.html') diff --git a/manuals/chickadee/Bezier-Curves.html b/manuals/chickadee/Bezier-Curves.html deleted file mode 100644 index 8935b0f..0000000 --- a/manuals/chickadee/Bezier-Curves.html +++ /dev/null @@ -1,161 +0,0 @@ - - - - - - -Bezier Curves (The Chickadee Game Toolkit) - - - - - - - - - - - - - - - - - - - -
-

-Previous: , Up: Math   [Contents][Index]

-
-
-

5.2.7 Bezier Curves

- -

The (chickadee math bezier) module provides an API for -describing cubic Bezier curves in 2D space. These curves are notably -used in font description, vector graphics programs, and when it comes -to games: path building. With Bezier curves, it’s somewhat easy to -create a smooth looking path for an enemy to move along, for example. -Bezier curves become particularly interesting when they are chained -together to form a Bezier “path”, where the end point of one curve -becomes the starting point of the next. -

-
-
Procedure: make-bezier-curve p0 p1 p2 p3
-

Return a new Bezier curve object whose starting point is p0, -ending point is p3, and control points are p1 and -p2. All points are 2D vectors. -

- -
-
Procedure: bezier-curve? obj
-

Return #t if obj is a Bezier curve. -

- -
-
Procedure: bezier-curve-p0 bezier
-

Return the starting point of bezier. -

- -
-
Procedure: bezier-curve-p1 bezier
-

Return the first control point of bezier. -

- -
-
Procedure: bezier-curve-p2 bezier
-

Return the second control point of bezier. -

- -
-
Procedure: bezier-curve-p3 bezier
-

Return the end point of bezier. -

- -
-
Procedure: bezier-path . control-points
-

Return a list of connected bezier curves defined by -control-points. The first curve is defined by the first 4 -arguments and every additional curve thereafter requires 3 additional -arguments. -

- -
-
Procedure: bezier-curve-point-at bezier t
-

Return the coordinates for bezier at t (a value in the -range [0, 1] representing how far from the start of the curve to -check) as a 2D vector. -

- -
-
Procedure: bezier-curve-point-at! dest bezier t
-

Modify the 2D vector dest in-place to contain the coordinates -for bezier at t. -

- -
-
-

-Previous: , Up: Math   [Contents][Index]

-
- - - - - -- cgit v1.2.3