Arbor 3: FSM & BT Graph Editor
3.7.8
|
Class to handle the two-dimensional cubic Bezier More...
Public Member Functions | |
Bezier2D () | |
new Bezier2D. More... | |
Bezier2D (Vector2 startPosition, Vector2 startControl, Vector2 endPosition, Vector2 endControl) | |
new Bezier2D. More... | |
Bezier2D (Bezier2D bezier) | |
new Bezier2D. More... | |
bool | SetStartPoint (Vector2 position, Vector2 control) |
Set Start point. More... | |
bool | SetEndPoint (Vector2 position, Vector2 control) |
Set End point. More... | |
Vector2 | GetPoint (float t) |
Get a position on the Bezier curve. More... | |
Vector2 | GetTangent (float t) |
Get a tangent on the Bezier curve. More... | |
Vector2 | GetClosestPoint (Vector2 pos, float thresholdT=0.001f) |
Get a closest point on the Bezier curve. More... | |
float | GetClosestParam (Vector2 pos, float thresholdT=0.001f) |
Get a closest point on the Bezier curve. More... | |
float | LinearToInterpolationParam (float t) |
Returns normal interpolation value of Bezier curve from linear interpolation value t. More... | |
Vector2 | GetLinearPoint (float t) |
Get a position on the Bezier curve linear. More... | |
bool | Equals (Bezier2D bezier) |
Returns whether this is equal to Bezier2D. More... | |
override bool | Equals (object obj) |
Returns whether this is equal to object. More... | |
override int | GetHashCode () |
Get a hash code. 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... | |
static Vector2 | GetTangent (Vector2 startPosition, Vector2 startControl, Vector2 endPosition, Vector2 endControl, float t) |
Get a tangent 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... | |
Class to handle the two-dimensional cubic Bezier
Bezier2D | ( | Vector2 | startPosition, |
Vector2 | startControl, | ||
Vector2 | endPosition, | ||
Vector2 | endControl | ||
) |
new Bezier2D.
startPosition | Starting point |
startControl | Control point of the end point |
endPosition | End point |
endControl | Control point of the end point |
bool Equals | ( | Bezier2D | bezier | ) |
override bool Equals | ( | object | obj | ) |
Returns whether this is equal to object.
obj | object value |
float GetClosestParam | ( | Vector2 | pos, |
float | thresholdT = 0.001f |
||
) |
Get a closest point on the Bezier curve.
pos | position |
thresholdT | threshold of closest param. |
Vector2 GetClosestPoint | ( | Vector2 | pos, |
float | thresholdT = 0.001f |
||
) |
Get a closest point on the Bezier curve.
pos | position |
thresholdT | threshold of closest param. |
override int GetHashCode | ( | ) |
Get a hash code.
Vector2 GetLinearPoint | ( | float | t | ) |
Get a position on the Bezier curve linear.
t | 0-1 of value |
Vector2 GetPoint | ( | float | t | ) |
Get a position on the Bezier curve.
t | 0-1 of value |
|
static |
Get a position on the Bezier curve.
startPosition | Starting point |
startControl | Control point of the starting point |
endPosition | End point |
endControl | Control point of the end point |
t | 0-1 of value |
Vector2 GetTangent | ( | float | t | ) |
Get a tangent on the Bezier curve.
t | 0-1 of value |
|
static |
Get a tangent on the Bezier curve.
startPosition | Starting point |
startControl | Control point of the starting point |
endPosition | End point |
endControl | Control point of the end point |
t | 0-1 of value |
float LinearToInterpolationParam | ( | float | t | ) |
Returns normal interpolation value of Bezier curve from linear interpolation value t.
t | 0-1 of value |
bool SetEndPoint | ( | Vector2 | position, |
Vector2 | control | ||
) |
Set End point.
position | Position |
control | Control point |
bool SetStartPoint | ( | Vector2 | position, |
Vector2 | control | ||
) |
Set Start point.
position | Position |
control | Control point |
|
getset |
Control point of the end point
|
getset |
End point
|
get |
Whether it has been changed
|
get |
Length
|
getset |
Control point of the starting point
|
getset |
Starting point