| 12345678910111213141516171819202122232425262728293031323334353637383940 |
- return {
- summary = 'Get the direction of the Curve at a point.',
- description = [[
- Returns a direction vector for the Curve given a parameter `t` from 0 to 1. 0 will return the
- direction at the first control point, 1 will return the direction at the last point, .5 will
- return the direction at the "middle" of the Curve, etc.
- ]],
- arguments = {
- t = {
- type = 'number',
- description = 'Where on the Curve to compute the direction.'
- }
- },
- returns = {
- x = {
- type = 'number',
- description = 'The x position of the point.'
- },
- y = {
- type = 'number',
- description = 'The y position of the point.'
- },
- z = {
- type = 'number',
- description = 'The z position of the point.'
- }
- },
- variants = {
- {
- arguments = { 't' },
- returns = { 'x', 'y', 'z' }
- }
- },
- notes = 'The direction vector returned by this function will have a length of one.',
- related = {
- 'Curve:evaluate',
- 'Curve:render',
- 'Curve:slice'
- }
- }
|