Use a dichotomy method to evaluate the intersection between the edge
destination node
shape and the Bézier curve of the connector c
.
Use a dichotomy method to evaluate the intersection between the edge
destination node
shape and the Bézier curve of the connector c
. The returned values are the point of
intersection as well as the parametric position of this point on the curve (a float).
The dichotomy can recurse at any level to increase precision, often 7 is sufficient, the
maxDepth
parameter allows to set this depth.
A 2-tuple made of the point of intersection and the associated parametric position.
Use a dichotomy method to evaluate the intersection between the edge
destination node
shape and the Bézier curve of the connector c
.
Use a dichotomy method to evaluate the intersection between the edge
destination node
shape and the Bézier curve of the connector c
. The returned values are the point of
intersection as well as the parametric position of this point on the curve (a float).
The maximal recursive depth of the dichotomy is fixed to 7 here.
A 2-tuple made of the point of intersection and the associated parametric position.
Evaluate the length of a Bézier curve by taking n points on the curve and summing the lengths of the n+1 segments thus defined.
Evaluate the length of a Bézier curve by taking four points on the curve and summing the lengths of the five segments thus defined.
A quick and dirty hack to evaluate the length of a cubic bezier curve.
A quick and dirty hack to evaluate the length of a cubic bezier curve. This method simply compute the length of the three segments of the enclosing polygon and scale them. This is fast but inaccurate.
Return two points, one inside and the second outside of the shape of the destination node
of the given edge
, the points can be used to deduce a vector along the Bézier curve entering
point in the shape.
Store in result
the derivative point of a cubic Bézier curve according to control points
x0
, x1
, x2
and x3
at parametric position t
of the curve.
Store in result
the derivative point of a cubic Bézier curve according to control points
x0
, x1
, x2
and x3
at parametric position t
of the curve.
the given reference to result
.
Store in result
the derivative point of a cubic Bézier curve according to control points
x0
, x1
, x2
and x3
at parametric position t
of the curve.
Store in result
the derivative point of a cubic Bézier curve according to control points
x0
, x1
, x2
and x3
at parametric position t
of the curve.
the given reference to result
.
Derivative point of a cubic Bézier curve according to control points x0
, x1
, x2
and
x3
at parametric position t
of the curve.
Derivative point of a cubic Bézier curve according to control points x0
, x1
, x2
and
x3
at parametric position t
of the curve.
The derivative point at parametric position t
on the curve.
Derivative point of a cubic Bézier curve according to control points x0
, x1
, x2
and
x3
at parametric position t
of the curve.
Derivative point of a cubic Bézier curve according to control points x0
, x1
, x2
and
x3
at parametric position t
of the curve.
The derivative point at parametric position t
on the curve.
Derivative of a cubic Bézier curve according to control points x0
, x1
, x2
and x3
at parametric position t
of the curve.
Derivative of a cubic Bézier curve according to control points x0
, x1
, x2
and x3
at parametric position t
of the curve.
The derivative at parametric position t
on the curve.
Evaluate a cubic Bézier curve according to control points p0
, p1
, p2
and p3
and
store the position at parametric position t
of the curve in result
.
Evaluate a cubic Bézier curve according to control points p0
, p1
, p2
and p3
and
store the position at parametric position t
of the curve in result
.
the given reference to result
.
Evaluate a cubic Bézier curve according to control points p0
, p1
, p2
and p3
and
store the position at parametric position t
of the curve in result
.
Evaluate a cubic Bézier curve according to control points p0
, p1
, p2
and p3
and
store the position at parametric position t
of the curve in result
.
the given reference to result
.
Evaluate a cubic Bézier curve according to control points p0
, p1
, p2
and p3
and
return the position at parametric position t
of the curve.
Evaluate a cubic Bézier curve according to control points p0
, p1
, p2
and p3
and
return the position at parametric position t
of the curve.
The point at parametric position t
on the curve.
Evaluate a cubic Bézier curve according to control points p0
, p1
, p2
and p3
and
return the position at parametric position t
of the curve.
Evaluate a cubic Bézier curve according to control points p0
, p1
, p2
and p3
and
return the position at parametric position t
of the curve.
The point at parametric position t
on the curve.
Evaluate a cubic Bézier curve according to control points p0
, p1
, p2
and p3
and
return the position at parametric position t
of the curve.
Evaluate a cubic Bézier curve according to control points p0
, p1
, p2
and p3
and
return the position at parametric position t
of the curve.
The point at parametric position t
on the curve.
Evaluate a cubic Bézier curve according to control points x0
, x1
, x2
and x3
and
return the position at parametric position t
of the curve.
Evaluate a cubic Bézier curve according to control points x0
, x1
, x2
and x3
and
return the position at parametric position t
of the curve.
The coordinate at parametric position t
on the curve.
The perpendicular vector to the curve defined by control points p0
, p1
, p2
and p3
at parametric position t
.
The perpendicular vector to the curve defined by control points p0
, p1
, p2
and p3
at parametric position t
.
A vector perpendicular to the curve at position t
.
Store in result
the perpendicular vector to the curve defined by control points p0
,
p1
, p2
and p3
at parametric position t
.
Store in result
the perpendicular vector to the curve defined by control points p0
,
p1
, p2
and p3
at parametric position t
.
the given reference to result
.
The perpendicular vector to the curve defined by control points p0
, p1
, p2
and p3
at parametric position t
.
The perpendicular vector to the curve defined by control points p0
, p1
, p2
and p3
at parametric position t
.
A vector perpendicular to the curve at position t
.
Utility methods to deal with Bézier cubic curves.