The QCurve
companion object provides formulas used by the QCurve
class.
Attributes
Members list
Type members
Inherited and Abstract types
The names of the product elements
The names of the product elements
Attributes
- Inherited from:
- Mirror
The name of the type
The name of the type
Attributes
- Inherited from:
- Mirror
Value members
Concrete methods
Calculate the location (x, y) of the control point. It is positioned orthogonal to the mid point of the line connecting p1 and p2 at a distance dist, where dist = bend * || p2 - p1 ||. A bend of 0.0 gives a straight line, while 2.0/-2.0 gives a huge bend up-right/down-left.
Calculate the location (x, y) of the control point. It is positioned orthogonal to the mid point of the line connecting p1 and p2 at a distance dist, where dist = bend * || p2 - p1 ||. A bend of 0.0 gives a straight line, while 2.0/-2.0 gives a huge bend up-right/down-left.
Value parameters
- bend
-
the bend or curvature
- p1
-
the starting point
- p2
-
the ending point
Attributes
Calculate the slope of the line defined by points p1 and p2. Note: if 'deltaX' is 0, the method returns infinity.
Calculate the slope of the line defined by points p1 and p2. Note: if 'deltaX' is 0, the method returns infinity.
Value parameters
- p1
-
the starting point
- p2
-
the ending point