프로퍼티 | 타입 | 설명 | |
---|---|---|---|
EndAnchor | Vector2 | ||
FirstControlPoint | Vector2 | ||
Parallel | float | ||
SecondControlPoint | Vector2 | ||
StartAnchor | Vector2 |
메소드 | 설명 | |
---|---|---|
BezierCurveCubic ( Vector2 startAnchor, Vector2 endAnchor, Vector2 firstControlPoint, Vector2 secondControlPoint ) |
Constructs a new BezierCurveCubic.
|
|
BezierCurveCubic ( float parallel, Vector2 startAnchor, Vector2 endAnchor, Vector2 firstControlPoint, Vector2 secondControlPoint ) |
Constructs a new BezierCurveCubic.
|
|
CalculateLength ( float precision ) : float |
Calculates the length of this bezier curve. The precision gets better when the precision value gets smaller. |
|
CalculatePoint ( float t ) : Vector2 |
Calculates the point with the specified t.
|
메소드 | 설명 | |
---|---|---|
CalculatePointOfDerivative ( float t ) : Vector2 |
Calculates the point with the specified t of the derivative of this function.
|
public BezierCurveCubic ( Vector2 startAnchor, Vector2 endAnchor, Vector2 firstControlPoint, Vector2 secondControlPoint ) | ||
startAnchor | Vector2 | The start anchor point. |
endAnchor | Vector2 | The end anchor point. |
firstControlPoint | Vector2 | The first control point. |
secondControlPoint | Vector2 | The second control point. |
public BezierCurveCubic ( float parallel, Vector2 startAnchor, Vector2 endAnchor, Vector2 firstControlPoint, Vector2 secondControlPoint ) | ||
parallel | float | The parallel value. |
startAnchor | Vector2 | The start anchor point. |
endAnchor | Vector2 | The end anchor point. |
firstControlPoint | Vector2 | The first control point. |
secondControlPoint | Vector2 | The second control point. |
public CalculateLength ( float precision ) : float | ||
precision | float | The precision. |
리턴 | float |
public CalculatePoint ( float t ) : Vector2 | ||
t | float | The t value, between 0.0f and 1.0f. |
리턴 | Vector2 |