FastUIDraw
Public Member Functions | Public Attributes | List of all members
fastuidraw::Path::control_point Class Reference

Class that wraps a vec2 to mark a point as a control point for a Bezier curve. More...

#include <path.hpp>

Public Member Functions

 control_point (const vec2 &pt)
 
 control_point (float x, float y)
 

Public Attributes

vec2 m_location
 

Detailed Description

Class that wraps a vec2 to mark a point as a control point for a Bezier curve.

Definition at line 676 of file path.hpp.

Constructor & Destructor Documentation

◆ control_point() [1/2]

fastuidraw::Path::control_point::control_point ( const vec2 pt)
inlineexplicit

Ctor

Parameters
ptvalue to which to set m_location

Definition at line 684 of file path.hpp.

◆ control_point() [2/2]

fastuidraw::Path::control_point::control_point ( float  x,
float  y 
)
inline

Ctor

Parameters
xvalue to which to set m_location.x()
yvalue to which to set m_location.y()

Definition at line 693 of file path.hpp.

Member Data Documentation

◆ m_location

vec2 fastuidraw::Path::control_point::m_location

Position of control point

Definition at line 700 of file path.hpp.


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