FreeHandBezier class.
Macros:
Enumerations:
None.
Typedefs:
None.
Struct CapyFreeHandBezierPos :
Struct CapyFreeHandBezierPos's properties:
Struct CapyFreeHandBezierPos's methods:
None.
Struct CapyFreeHandBezier :
Struct CapyFreeHandBezier's properties:
Array of controls of the curve under drawing
Number of segments in the curve
Length of the last segment
Threshold for the shift (default: 1.0)
Cumulative drift for the last segment
Flag for continuity (default: true)
Struct CapyFreeHandBezier's methods:
Destructor
Start a new Bezier curve from a given position
Input argument(s):
pos: the position
Extend a Bezier curve to a new position
Input argument(s):
pos: the position
End a Bezier curve
Output and side effect(s):
Return a CapyBezierSpline
Eval the Bezier curve
Input argument(s):
iSegment: index of the segment
t: parameter (in [0,1]
Output and side effect(s):
Return the position as a CapyFreeHandBezierPos
Functions:
Create a CapyFreeHandBezier
Output and side effect(s):
Return a CapyFreeHandBezier
Allocate memory for a new CapyFreeHandBezier and create it
Output and side effect(s):
Return a CapyFreeHandBezier
Exception(s):
May raise CapyExc_MallocFailed.
Free the memory used by a CapyFreeHandBezier* and reset '*that' to NULL
Input argument(s):
that: a pointer to the CapyFreeHandBezier to free