clan::BezierCurve Class Reference - ClanLib SDK
Description: clan::BezierCurve Class Reference

Public Member Functions | List of all members
clan::BezierCurve Class Reference
clanCore Math

Bezier curve generator. More...

`#include <bezier_curve.h>`

## Public Member Functions
| BezierCurve ()
| Constructs a bezier curve generator.
virtual | ~BezierCurve ()
void | add_control_point (const Pointf &)
void | add_control_point (float x, float y)
| Adds a control point to bezier.
std::vector< Pointf > | generate_curve_points (const Angle &split_angle)
| Generates points on the bezier curve.
std::vector< Pointf > | get_control_points () const
| Returns the control points of the bezier.
Pointf | get_point_relative (float pos_0_to_1) const
| Get a point on the bezier curve.

## Detailed Description

Bezier curve generator.

## Constructor & Destructor Documentation

## ◆ BezierCurve()

clan::BezierCurve::BezierCurve | ( |  | ) |

Constructs a bezier curve generator.

## ◆ ~BezierCurve()

virtual clan::BezierCurve::~BezierCurve | ( |  | ) |
| virtual

## Member Function Documentation

## ◆ add_control_point() [1/2]

void clan::BezierCurve::add_control_point | ( | const Pointf & |  | ) |

## ◆ add_control_point() [2/2]

void clan::BezierCurve::add_control_point | ( | float | x,
|  | float | y )

Adds a control point to bezier.

References clan::x, and clan::y.

## ◆ generate_curve_points()

std::vector< Pointf > clan::BezierCurve::generate_curve_points | ( | const Angle & | split_angle | ) |

Generates points on the bezier curve.

## ◆ get_control_points()

std::vector< Pointf > clan::BezierCurve::get_control_points | ( |  | ) | const

Returns the control points of the bezier.

## ◆ get_point_relative()

Pointf clan::BezierCurve::get_point_relative | ( | float | pos_0_to_1 | ) | const

Get a point on the bezier curve.

The documentation for this class was generated from the following file:

- bezier_curve.h