Class PointFromLineDistance

Calculates the distance between a point and a line.

Hierarchy

  • Procedures.Procedure<{
        line: {
            a: number;
            b: number;
            c: number;
        };
        point: {
            x: number;
            y: number;
        };
    }, {
        distance: number;
    }>
    • PointFromLineDistance

Constructors

Accessors

Methods

Constructors

Accessors

Methods

  • Performs the evaluation. Should be a pure function.

    Parameters

    • input: {
          line: {
              a: number;
              b: number;
              c: number;
          };
          point: {
              x: number;
              y: number;
          };
      }

      The input data.

      • line: {
            a: number;
            b: number;
            c: number;
        }
        • a: number
        • b: number
        • c: number
      • point: {
            x: number;
            y: number;
        }
        • x: number
        • y: number

    Returns {
        distance: number;
    }

    The output data.

    • distance: number
  • Performs the procedure.

    Parameters

    • input: {
          line: {
              a: number;
              b: number;
              c: number;
          };
          point: {
              x: number;
              y: number;
          };
      }
      • line: {
            a: number;
            b: number;
            c: number;
        }
        • a: number
        • b: number
        • c: number
      • point: {
            x: number;
            y: number;
        }
        • x: number
        • y: number

    Returns {
        distance: number;
    }

    • distance: number

Generated using TypeDoc