Calculate the location (x, y) of the control point.
Calculate the location (x, y) of the control point. It is positioned orthogonally to the mid point of the line connecting p1 and p2 at a distance dist, where dist = bend * || p2 - p1 ||. A bend of 0. gives a straight line, while 2./-2. gives a huge bend up-right/down-left.
the starting point
the ending point
the bend or curvature
Calculate the distance or the length of the line connecting points p1 and p2.
Calculate the distance or the length of the line connecting points p1 and p2.
the starting point
the ending point
Calculate the slope of the line defined by points p1 and p2.
Calculate the slope of the line defined by points p1 and p2. Note: if deltaX is 0, the method returns infinity.
the starting point
the ending point
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: The
QCurve
companion object provides formulas used by theQCurve
class.