jakke-graphics-ts
    Preparing search index...

    Function getParameterOnLine

    • Evaluate the parameter of given line and point.

      Parameters

      Returns number

      When the given point is on the line between endpoints, the result will be 0 ~ 1. When it is on the line but outside the endpoints, the result will be negative float or larger than 1. When it is determined that the point actually not placed on the line, it will return undefined.