This is the cubic-bezier Reference Manual, version 0.1.0, generated automatically by Declt version 4.0 beta 2 "William Riker" on Sun Sep 15 04:55:44 2024 GMT+0.
The main system appears first, followed by any subsystem dependency.
cubic-bezier
A library for constructing and evaluating cubic Bézier curve paths.
Michael Fiano <mail@mfiano.net>
MIT
0.1.0
mfiano-utils
(system).
origin
(system).
package.lisp
(file).
cubic-bezier.lisp
(file).
Files are sorted by type and then listed depth-first from the systems components trees.
cubic-bezier/cubic-bezier.lisp
package.lisp
(file).
cubic-bezier
(system).
add-points
(function).
collect-points
(function).
collect-segments
(function).
curve
(structure).
edit-point
(function).
evaluate
(function).
make-curve
(function).
point-count-valid-p
(function).
point-index-present-p
(function).
%make-curve
(function).
+matrix+
(constant).
add-geometry
(function).
arc-lengths
(reader).
(setf arc-lengths)
(writer).
arc-lengths-update
(reader).
(setf arc-lengths-update)
(writer).
divisions
(reader).
(setf divisions)
(writer).
ensure-point-list
(function).
estimate-arc-lengths
(function).
geometry
(reader).
(setf geometry)
(writer).
make-geometry
(function).
remap
(function).
verify-points
(function).
Packages are listed by definition order.
cubic-bezier
common-lisp
.
add-points
(function).
collect-points
(function).
collect-segments
(function).
curve
(structure).
edit-point
(function).
evaluate
(function).
make-curve
(function).
point-count-valid-p
(function).
point-index-present-p
(function).
%make-curve
(function).
+matrix+
(constant).
add-geometry
(function).
arc-lengths
(reader).
(setf arc-lengths)
(writer).
arc-lengths-update
(reader).
(setf arc-lengths-update)
(writer).
divisions
(reader).
(setf divisions)
(writer).
ensure-point-list
(function).
estimate-arc-lengths
(function).
geometry
(reader).
(setf geometry)
(writer).
make-geometry
(function).
remap
(function).
verify-points
(function).
Definitions are sorted by export status, category, package, and then by lexicographic order.
Append the specified ‘points‘ to ‘curve‘. ‘points‘ should be a sequence of 3-dimensional vectors as constructed with ‘#’origin.vec3:vec‘. NOTE: It is an error to add less than a segment worth of points. A cubic Bézier curve is defined by 4 points for the first segment, and three points for each successive segment (since the first point of a segment is shared with the last point of the previous segment.)
Evaluate ‘count‘ points along curve, returning a list of 3-dimensional vectors. If ‘even-spacing-p‘ is supplied, arc-length re-parameterization is applied: see the documentation for ‘#’evaluate‘ for more information.
Collect a list of ‘count‘ segments of ‘curve‘. A segment is a list of two 3-dimensional vectors. If ‘even-spacing-p‘ is supplied, arc-length re-parameterization is applied: see the documentation for ‘#’evaluate‘ for more information.
Edit the point of ‘curve‘ at index ‘index‘ with ‘value‘. ‘value‘ should be a 3-dimensional vector as constructed with ‘#’origin.vec3:vec‘.
Evaluate ‘curve‘ at parameter ‘parameter‘. If ‘even-spacing-p‘ is non-NIL, arc-length re-parameterization is applied, which evenly spaces points along the curve. The number of points is defined by the ‘divisions‘ argument supplied when constructing the curve with ‘#’make-curve‘. Arc-length re-parameterization is a remapping of ‘parameter‘ before evaluating the curve, in order to allow for uses such as animation along a curve with a constant velocity.
Create a cubic Bézier curve path from the given sequence of ‘points‘. ‘points‘ is a sequence of 3-dimensional vectors as constructed with ‘#’origin.vec3:vec‘. ‘divisions‘ is the number of sub-divisions to use when estimating the arc-length of the curve path: see the documentation for ‘#’evaluate‘ for more information.
Check whether the integer ‘point-count‘ is a valid number of points for a cubic Bézier curve path. To be valid, there must be at least 4 points, any increment of 3 thereafter: (4, 7, 10, 13, ...).
Check if ‘curve‘ has a point at index ‘index‘.
structure-object
.
fixnum
100
vector
(make-array 0 :adjustable t :fill-pointer 0)
mfiano-utils:f32a
(mfiano-utils:make-f32-array 0)
boolean
Jump to: | %
(
A C D E F G M P R V |
---|
Jump to: | %
(
A C D E F G M P R V |
---|
Jump to: | +
A C D G S |
---|
Jump to: | +
A C D G S |
---|
Jump to: | C F P S |
---|
Jump to: | C F P S |
---|