npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@gamefusion/gamefusion-bezier

v1.0.0

Published

Bezier curve library from GameFusion

Readme

Bezier Curve Library

An ultra-lightweight Bezier curve library for multiple programming languages, enabling precise curve evaluations and manipulations.

Welcome to the Bezier Curve Library, an efficient ultra-lightweight library designed to provide accurate Bezier curve evaluations and manipulations for various programming languages, including C++, C#, JavaScript, and TypeScript.

This library is focused exclusively on Bezier math and has been used extensively for 3D animation, game development, and websites over the past 20 years. With features such as point evaluation on curves, curve intersection calculations, and the ability to manipulate curves using handles, this library is a trusted tool for professionals in animation, gaming, and software development.

Key Features:

  • Point Evaluation: Evaluate specific points on a Bezier curve.
  • Curve Intersection: Calculate intersections between Bezier curves.
  • Handle Manipulation: Use Bezier handles for intuitive curve editing.
  • Multi-Language Support: Available for C++, C#, JavaScript, and TypeScript.
  • Efficient: Optimized for performance with minimal footprint.
  • 20+ Years of Use: Proven and trusted in production systems for two decades.

Installation

To install and use the Bezier Curve Library in your project, follow the instructions based on the language you're working with.

For C++:

  1. Download the library or clone the repository.
  2. Include the Bezier header files in your project.
  3. Link the library with your C++ project.

For C#:

  1. Add a reference to the Bezier namespace in your C# project.

For JavaScript / TypeScript:

  1. Import the library into your JavaScript/TypeScript code:
    import Bezier from 'bezier-library';

Usage Example

// Example in C++
BezierCurve curve({Point(0, 0), Point(1, 2), Point(3, 5)});
auto point = curve.evaluate(0.5);  // Evaluate point at t=0.5
// Example in C#
BezierCurve curve = new BezierCurve(new Point[] { new Point(0, 0), new Point(1, 2), new Point(3, 5) });
var point = curve.Evaluate(0.5);  // Evaluate point at t=0.5
// Example in JavaScript
const curve = new Bezier([new Point(0, 0), new Point(1, 2), new Point(3, 5)]);
let point = curve.evaluate(0.5);  // Evaluate point at t=0.5

Documentation

License

This project is licensed under the MIT License. See the LICENSE file for details.


Directory Structure for the Project

/bezier-library
│
├── /cpp                          # C++ implementation
│   ├── BezierPath.cpp            # BezierPath implementation in C++
│   ├── BezierPath.h              # Header for BezierPath in C++
│   ├── BezierHandle.cpp          # BezierHandle implementation in C++
│   ├── BezierHandle.h            # Header for BezierHandle in C++
│   ├── Math3D.cpp                # Math3D related functions for C++
│   ├── Math3D.h                  # Header for Math3D
│   ├── Vector3D.cpp              # Vector3D implementation in C++
│   ├── Vector3D.h                # Header for Vector3D
│   ├── List.cpp                  # List container implementation in C++
│   ├── List.h                    # Header for List container
│   ├── Array.cpp                 # Array container implementation in C++
│   └── Array.h                   # Header for Array container
│
├── /csharp                       # C# implementation
│   ├── Bezier.cs                 # BezierCurve class in C#
│   ├── BezierPath.cs             # BezierPath in C#
│   ├── BezierHandle.cs           # BezierHandle in C#
│   ├── Math3D.cs                 # Math3D related functions in C#
│   ├── Vector3D.cs               # Vector3D class in C#
│   ├── List.cs                   # List container in C#
│   └── Array.cs                  # Array container in C#
│
├── /typescript                   # TypeScript implementation
│   └── Bezier.ts                 # Bezier curve class in TypeScript
│
├── /javascript                   # JavaScript implementation
│   └── Bezier.js                 # Bezier curve class in JavaScript
│
├── /tests                        # Unit tests for the library
│   ├── test_bezier_curve.cpp     # C++ test cases
│   ├── test_bezier_curve.cs      # C# test cases
│   ├── test_bezier_curve.js      # JavaScript test cases
│   └── test_bezier_curve.ts      # TypeScript test cases
│
├── /docs                         # Documentation
│   ├── usage.md                  # Usage examples for different languages
│   └── javascript.md             # Javascript documentation details
│
├── /examples                     # Example usage code
│   ├── example_cpp.cpp           # Example usage in C++
│   ├── example_csharp.cs         # Example usage in C#
│   ├── example_js.js             # Example usage in JavaScript
│   └── example_ts.ts             # Example usage in TypeScript
│
├── LICENSE                       # MIT License file
├── README.md                     # Project README file
└── /build                        # Build and configuration files