GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • @maxgraph/core

This view

  • Original page
  • New address

GeezerVison is showing maxgraph.github.io — ptLineDist | @maxgraph/core

  • mathUtils
  • ptLineDist

Function ptLineDist

  • ptLineDist(
        x1: number,
        y1: number,
        x2: number,
        y2: number,
        px: number,
        py: number,
    ): number

    Returns the distance between a line defined by two points and a point. To get the distance between a point and a segment (with a specific length) use Utils#ptSeqDistSq.

    Parameters

    • x1: number

      X-coordinate of point 1 of the line.

    • y1: number

      Y-coordinate of point 1 of the line.

    • x2: number

      X-coordinate of point 1 of the line.

    • y2: number

      Y-coordinate of point 1 of the line.

    • px: number

      X-coordinate of the point.

    • py: number

      Y-coordinate of the point.

    Returns number

    • Defined in util/mathUtils.ts:800

Settings

Member Visibility
  • Protected
  • Inherited
Theme
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.