QCurve

scalation.scala2d.QCurve
See theQCurve companion class
object QCurve

The QCurve companion object provides formulas used by the QCurve class.

Attributes

Companion
class
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
QCurve.type

Members list

Type members

Inherited and Abstract types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Mirror
type MirroredLabel <: String

The name of the type

The name of the type

Attributes

Inherited from:
Mirror

Value members

Concrete methods

def calcControlPoint(p1: R2, p2: R2, bend: Double): R2

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

def calcControlPoint2(p1: VectorD, p2: VectorD, bend: Double): VectorD
def slope(p1: R2, p2: R2): Double

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

Attributes