curveΒΆ
class curve
A curve is a curve with a set of keys and tangents
Members
| create | ( ) | Create an empty curve |
| addkey | (
|
Add a key into a curve |
| copy | (
|
Copy a curve content into another |
| createorsetkey | (
|
Create/set a key |
| deletekey | (
|
Delete a key |
| getflags | ( ) | Get the curve flags |
| getkeycount | ( ) | Get the number of keys of the curve |
| getkeyflags | (
|
Get the key flags |
| getkeylimit | (
|
Get the key limit, on the left and right sides |
| getkeypos | (
|
Get a key coordinates |
| getkeytanpos | (
|
Get the key tangent positions |
| getloopminmax | ( ) | Get the curve loop min,max values |
| getloopmode | ( ) | Get the curve looping mode as a string |
| getloopx | (
|
Evaluate a curve unlooped x |
| getvalue | (
|
Evaluate a curve at a given x |
| haskey | (
|
Tell if there is a key at x |
| setflags | (
|
Set the curve flags |
| setkeyflags | (
|
Set the key flags |
| setkeypos | (
|
Set a key coordinates |
| setkeytanpos | (
|
Set the key tangent positions |
| setloopminmax | (
|
Set the curve looping min and max |
| setloopmode | (
|
Set the curve looping mode fror a string |
Documentation
Add a key into a curve
x The x coordinate of the keyy The y coordinate of the key
Copy a curve content into another
source The source curve to copy
Create/set a key
x the x coordinate of the key to sety the y coordinate of the key to set
index the 1-based index of the key
Delete a key
index the 1-based index of the key to delete
Get the curve flags
flags the flags of the curve
Get the number of keys of the curve
count the number of keys
Get the key flags
index the 1-based index of the key
flags the flags of the key
Get the key limit, on the left and right sides
index the 1-based index of the key
min,max the left and right limits of the key
Get a key coordinates
index the 1-based index of the key in the curve
x,y the x,y coordinates of the key
Get the key tangent positions
index the 1-based index of the key
px,py,nx,ny the previous x,y and next x,y coordinates of the key tangents
Get the curve loop min,max values
min,max the loop min and max values
Get the curve looping mode as a string
mode the loop mode
Evaluate a curve unlooped x
x the x position to evaluate the curve at
loopx the evaluated loopx value of the curve at x
Evaluate a curve at a given x
x the x position to evaluate the curve at
y the evaluated y value of the curve at x
Tell if there is a key at x
x the x coordinate of the key to set
exist true if the key exists
Set the curve flags
flags the flags to setmask the mask of flags to set (or nil to reset all flags)
Set the key flags
index the 1-based index of the keyflags the flags of the key to setmask the mask of flags to set (or nil to reset all flags)
Set a key coordinates
index the 1-based index of the key in the curvex the x coordinate of the key to sety the y coordinate of the key to set
Set the key tangent positions
index the 1-based index of the keypx the x coordinate of the previous tangent positionpy the y coordinate of the previous tangent positionnx the x coordinate of the next tangent positionny the y coordinate of the next tangent position
Set the curve looping min and max
min the loop min valuemax the loop max value
Set the curve looping mode fror a string
loopmode the loop mode to set