This module provides various mathematical functions for spline curves, including Bézier and Catmull-Rom interpolation methods.
These functions are useful for generating and manipulating smooth curves in 3D and 2D space.
Installation
To install the module, run the following command:
npminstall@xeokit/sdk
Usage
We'll demonstrate a selection of curve functions provided by this module.
Spline Curve Math Functions
This module provides various mathematical functions for spline curves, including Bézier and Catmull-Rom interpolation methods. These functions are useful for generating and manipulating smooth curves in 3D and 2D space.
Installation
To install the module, run the following command:
Usage
We'll demonstrate a selection of curve functions provided by this module.
Import the functions:
Quadratic Bézier curve tangent at a given parameter
Cubic Bézier curve tangent at a given parameter
Spline curve tangent at a given parameter
Catmull-Rom interpolation at a given parameter
Quadratic Bézier curve result at a given parameter
Cubic Bézier curve result at a given parameter