- bezierCubic
PointF bezierCubic(PointF[] cp, float t)
- bezierCubicDerivative
PointF bezierCubicDerivative(PointF[] cp, float t)
cubic bezier (first) derivative
- bezierCubicDirection
PointF bezierCubicDirection(PointF[] cp, float t)
evaluates cubic bezier direction(tangent) at point t
- bezierCubicNormal
PointF bezierCubicNormal(PointF[] cp, float t)
calculates normal vector at point t using direction
- bezierQuadratic
PointF bezierQuadratic(PointF[] cp, float t)
quadratic bezier curve (not tested)
- bezierQuadraticDerivative
PointF bezierQuadraticDerivative(PointF[] cp, float t)
quadratic bezier (first) derivative
- bezierQuadraticDirection
PointF bezierQuadraticDirection(PointF[] cp, float t)
evaluates quadratic bezier direction(tangent) at point t
- bezierQuadraticNormal
PointF bezierQuadraticNormal(PointF[] cp, float t)
calculates normal vector at point t using direction
- flattenBezier
PointF[] flattenBezier(PointF[] cp, int segmentCountInclusive)
templated version of bezier flatten curve function, allocates temporary buffer
- flattenBezier
void flattenBezier(PointF[] cp, int segmentCountInclusive, PointF[] outSegments)
flatten bezier curve function, writes to provided buffer instead of allocation
- flattenBezierCubic
PointF[] flattenBezierCubic(PointF[] cp, int segmentCount)
flattens cubic bezier curve, returns PointF[segmentCount+1] array or empty array if <1 segments
- flattenBezierQuadratic
PointF[] flattenBezierQuadratic(PointF[] cp, int segmentCount)
flattens quadratic bezier curve, returns PointF[segmentCount+1] array or empty array if <1 segments
- fuzzyNull
bool fuzzyNull(float v)
Undocumented in source. Be warned that the author may not have intended to support it.
- triangleNormal
vec3 triangleNormal(vec3 p1, vec3 p2, vec3 p3)
calculate normal for triangle
- triangleNormal
vec3 triangleNormal(float[3] p1, float[3] p2, float[3] p3)
calculate normal for triangle