divideSegmentInRatio
fun <V> PlanimetricsCalculationContext<V, *>.divideSegmentInRatio(A: Point<V>, B: Point<V>, lambda: V): Point<V>
Constructs a point P on the line through A and B that divides segment \( AB \) in ratio lambda. It means that on the affine map that is considered generated by Point.x and Point.y coordinates a point P such that \(\overrightarrow{AP}/\overrightarrow{PB} = \lambda\), so P is returned.
Return
The constructed point P.
Parameters
A
The first point.
B
The second point.
lambda
The ration.
fun <V> PlanimetricsCalculationContext<V, *>.divideSegmentInRatio(A: Point<V>, B: Point<V>, a: V, b: V): Point<V>
Constructs a point P on the line through A and B that divides segment \( AB \) in ratio \(a/b\). It means that on the affine map that is considered generated by Point.x and Point.y coordinates a point P such that \(\overrightarrow{AP}/\overrightarrow{PB} = a/b\), so P is returned.
Return
The constructed point P.
Parameters
A
The first point.
B
The second point.
a
Component of ratio \(a/b\).
b
Component of ratio \(a/b\).