findPointPosition

fun findPointPosition(p1: Float, p2: Float, yPointOfOrigin: Float): AxisPosition

Used to find the position of the start and end point of the bezier curve

Parameters

p1

: start point

p2

: end point

yPointOfOrigin

: point where x axis reside