**_MISC_GET_BEZIER_POINT()**

A script used to calculate the points on a cubic bezier curve.

**Returns:** An array of two elements, being the X and Y coordinates of the desired point.

**Syntax:**

_MISC_GET_BEZIER_POINT(t, x1, y1, x2, y2, x3, y3, x4, y4) |

**Arguments:**

Name | Type | Significance |
---|---|---|

t | Float | A value indicating where on the bezier curve we want the point to be. 0 indicates the first point, while 1 indicates the last point. |

x1 | Integer | The X-coordinate of the starting point. |

y1 | Integer | The Y-coordinate of the starting point. |

x2 | Integer | The X-coordinate of the first control point. |

y2 | Integer | The Y-coordinate of the first control point. |

x3 | Integer | The X-coordinate of the second control point. |

y3 | Integer | The Y-coordinate of the second control point. |

x4 | Integer | The X-coordinate of the end point. |

y4 | Integer | The Y-coordinate of the end point. |