Arbor: State Diagram Editor  2.2.0
Bezier2D Class Reference

Class to handle the two-dimensional cubic Bezier More...

Public Member Functions

 Bezier2D ()
 
 Bezier2D (Vector2 startPosition, Vector2 startControl, Vector2 endPosition, Vector2 endControl)
 
 Bezier2D (Bezier2D bezier)
 
Vector2 GetPoint (float t)
 Get a position on the Bezier curve. More...
 
Vector2 GetLinearPoint (float t)
 Get a position on the Bezier curve linear. More...
 

Static Public Member Functions

static Vector2 GetPoint (Vector2 startPosition, Vector2 startControl, Vector2 endPosition, Vector2 endControl, float t)
 Get a position on the Bezier curve. More...
 

Properties

Vector2 startPosition [get, set]
 Starting point More...
 
Vector2 startControl [get, set]
 Control point of the starting point More...
 
Vector2 endPosition [get, set]
 End point More...
 
Vector2 endControl [get, set]
 Control point of the end point More...
 
float length [get]
 Length More...
 
bool isChanged [get]
 Whether it has been changed More...
 

Detailed Description

Class to handle the two-dimensional cubic Bezier

Constructor & Destructor Documentation

Bezier2D ( )
Bezier2D ( Vector2  startPosition,
Vector2  startControl,
Vector2  endPosition,
Vector2  endControl 
)
Bezier2D ( Bezier2D  bezier)

Member Function Documentation

Vector2 GetLinearPoint ( float  t)

Get a position on the Bezier curve linear.

Parameters
t0-1 of value
Vector2 GetPoint ( float  t)

Get a position on the Bezier curve.

Parameters
t0-1 of value
static Vector2 GetPoint ( Vector2  startPosition,
Vector2  startControl,
Vector2  endPosition,
Vector2  endControl,
float  t 
)
static

Get a position on the Bezier curve.

Parameters
startPositionStarting point
startControlControl point of the starting point
endPositionEnd point
endControlControl point of the end point
t0-1 of value

Property Documentation

Vector2 endControl
getset

Control point of the end point

Vector2 endPosition
getset

End point

bool isChanged
get

Whether it has been changed

float length
get

Length

Vector2 startControl
getset

Control point of the starting point

Vector2 startPosition
getset

Starting point