BezierCurve:setControlPoint

BezierCurve:setControlPoint Available since LÖVE 0.9.0 This function is not supported in earlier versions. Set coordinates of the i-th control point. Indices start with 1. Function Synopsis BezierCurve:setControlPoint(i, x, y) Arguments number i Index of the control point. number x Position of the control point along the x axis. number y Position of the control point along the y axis. Returns Nothing. See Also BezierCurve BezierCurve:getDegree BezierCurve:getControlPoint Bezie

BezierCurve:scale

BezierCurve:scale Available since LÖVE 0.9.0 This function is not supported in earlier versions. Scale the Bézier curve by a factor. Function Synopsis BezierCurve:scale(s, ox, oy) Arguments number s Scale factor. number ox (0) X coordinate of the scaling center. number oy (0) Y coordinate of the scaling center. Returns Nothing. See Also BezierCurve:translate BezierCurve:rotate BezierCurve love.math

BezierCurve:rotate

BezierCurve:rotate Available since LÖVE 0.9.0 This function is not supported in earlier versions. Rotate the Bézier curve by an angle. Function Synopsis BezierCurve:rotate(angle, ox, oy) Arguments number angle Rotation angle in radians. number ox (0) X coordinate of the rotation center. number oy (0) Y coordinate of the rotation center. Returns Nothing. See Also BezierCurve:translate BezierCurve:scale BezierCurve love.math

BezierCurve:renderSegment

BezierCurve:renderSegment Available since LÖVE 0.10.0 This function is not supported in earlier versions. Get a list of coordinates on a specific part of the curve, to be used with love.graphics.line. This function samples the Bézier curve using recursive subdivision. You can control the recursion depth using the depth parameter. If you are just need to know the position on the curve given a parameter, use BezierCurve:evaluate. Function Synopsis coordinates = BezierCurve:renderSegment( s

BezierCurve:render

BezierCurve:render Available since LÖVE 0.9.0 This function is not supported in earlier versions. Get a list of coordinates to be used with love.graphics.line. This function samples the Bézier curve using recursive subdivision. You can control the recursion depth using the depth parameter. If you are just interested to know the position on the curve given a parameter, use BezierCurve:evaluate. Function Synopsis coordinates = BezierCurve:render(depth) Arguments number depth (5) Number of

BezierCurve:removeControlPoint

BezierCurve:removeControlPoint Available since LÖVE 0.10.0 This function is not supported in earlier versions. Removes the specified control point. Function Synopsis BezierCurve:removeControlPoint( index ) Arguments number index The index of the control point to remove. Returns Nothing. See Also BezierCurve BezierCurve:getDegree BezierCurve:setControlPoint BezierCurve:getControlPoint BezierCurve:insertControlPoint love.math

BezierCurve:insertControlPoint

BezierCurve:insertControlPoint Available since LÖVE 0.9.0 This function is not supported in earlier versions. Insert control point after the i-th control point. Indices start with 1. Negative indices wrap around: -1 is the last control point, -2 the one before the last, etc. Function Synopsis BezierCurve:insertControlPoint(x, y, i) Arguments number x Position of the control point along the x axis. number y Position of the control point along the y axis. number i (-1) Index of the contro

BezierCurve:getSegment

BezierCurve:getSegment Available since LÖVE 0.10.0 This function is not supported in earlier versions. Gets a BezierCurve that corresponds to the specified segment of this BezierCurve. Function Synopsis curve = BezierCurve:getSegment( startpoint, endpoint ) Arguments number startpoint The starting point along the curve. Must be between 0 and 1. number endpoint The end of the segment. Must be between 0 and 1. Returns BezierCurve curve A BezierCurve that corresponds to the specified seg

BezierCurve:getDerivative

BezierCurve:getDerivative Available since LÖVE 0.9.0 This function is not supported in earlier versions. Get the derivative of the Bézier curve. This function can be used to rotate sprites moving along a curve in the direction of the movement and compute the direction perpendicular to the curve at some parameter t. Function Synopsis derivative = BezierCurve:getDerivative() Arguments None. Returns BezierCurve derivative The derivative curve. See Also BezierCurve love.math

BezierCurve:getDegree

BezierCurve:getDegree Available since LÖVE 0.9.0 This function is not supported in earlier versions. Get degree of the Bézier curve. The degree is equal to number-of-control-points - 1. Function Synopsis degree = BezierCurve:getDegree( ) Arguments None. Returns number degree Degree of the Bézier curve. See Also BezierCurve BezierCurve:getControlPoint BezierCurve:setControlPoint BezierCurve:insertControlPoint love.math